org.grinvin.gui.components
Class FilterListComponent
JList
org.grinvin.gui.components.FilterListComponent
- AcceptsFilter, AcceptsInvariant, HasAccessControl, HasSelectableValues
public class FilterListComponent
extends JList
TRANSFER_HANDLER
protected static final LocalTransferHandler TRANSFER_HANDLER
FilterListComponent
public FilterListComponent(FilterListModel model,
int dragOperations,
int dropOperations)
Creates a new instance of InvariantListComponent
combineSelectedFilters
public void combineSelectedFilters(CompoundGraphFilter.Operator operator)
Combine the currently selected filters into one filter.
deleteSelectedElements
public void deleteSelectedElements()
Delete currently selected elements.
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.
splitSelectedElements
public void splitSelectedElements()
Split the selected filters again.
toggleNegagtionSelectedElements
public void toggleNegagtionSelectedElements()
Toggle the negation of the currently selected filters.
void paintComponent
protected @Override void paintComponent(Graphics g)
Adds a watermark to the list.