org.grinvin.gui.components
Class GraphListComponent
JList
org.grinvin.gui.components.GraphListComponent
- HasAccessControl, HasGraphList, HasSelectableGraphList, HasSelectableValues, MouseListener
public class GraphListComponent
extends JList
GraphListComponent
public GraphListComponent(GraphListModel model,
ListSelectionModel selectionModel)
GraphListComponent
public GraphListComponent(GraphListModel model,
ListSelectionModel selectionModel,
int dragOperations,
int dropOperations)
GraphListComponent
public GraphListComponent(GraphListModel model,
int dragOperations,
int dropOperations)
createListSelectionModel
protected ListSelectionModel createListSelectionModel()
deleteSelectedElements
public void deleteSelectedElements()
Delete currently selected elements.
mouseClicked
public void mouseClicked(MouseEvent e)
mouseEntered
public void mouseEntered(MouseEvent e)
mouseExited
public void mouseExited(MouseEvent e)
mousePressed
public void mousePressed(MouseEvent e)
mouseReleased
public void mouseReleased(MouseEvent e)
renameSelectedElement
public void renameSelectedElement()
Rename currently selected element.
setIsReadOnly
public void setIsReadOnly(boolean isReadOnly)
setPaintWatermark
public void setPaintWatermark(boolean paintWatermark)
Configure whether to paint the watermark or not. If no watermark
is painted, the list background is completely transparent.
Note that this behavious is different from a
GraphCellListComponent
which has no watermark.
void paintComponent
protected @Override void paintComponent(Graphics g)
Adds a watermark to the list.