Package com.illumon.iris.gui.table
Interface FilteredModel
- All Superinterfaces:
TableModel
- All Known Subinterfaces:
QuickFilterable
- All Known Implementing Classes:
DBTableModel,FilteredTableModel,InputOverlayTableModel,IrisTreeTableModel
This interface defines a table model that supports filtering.
-
Method Summary
Modifier and TypeMethodDescriptionvoidNotify the implementation that the set of underlying filters have changed.com.fishlib.dataobjects.WColumnSetGet the currentcolumn setfor the model.Get theFilterStrategyImplin use.org.jdom2.Element[]Get all of the saved strategy workspaceElementsbooleanisFilterable(String column) Check if the specified column is filterable.booleanCheck if the model is currently being filtered.voidremoveStrategy(String name) Remove the globally saved filter of the specified name.voidsaveStrategy(String name) Save the current set of filters to the global set of filters by name.Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
-
Method Details
-
filterChanged
void filterChanged()Notify the implementation that the set of underlying filters have changed. -
getFilterStrategy
Get theFilterStrategyImplin use.- Returns:
- the FilterStrategy
-
getColumnSet
com.fishlib.dataobjects.WColumnSet getColumnSet()Get the currentcolumn setfor the model.- Returns:
- the column set
-
saveStrategy
Save the current set of filters to the global set of filters by name.- Parameters:
name- the name of the filter
-
getSavedStrategies
@NotNull org.jdom2.Element[] getSavedStrategies()Get all of the saved strategy workspaceElements- Returns:
- an array of saved filter strategy elements.
-
removeStrategy
Remove the globally saved filter of the specified name.- Parameters:
name- the name of the filter to remove
-
isFilteringOn
boolean isFilteringOn()Check if the model is currently being filtered.- Returns:
- true if filters are currently applied
-
isFilterable
Check if the specified column is filterable.- Parameters:
column- the column name.- Returns:
- true if the column is filterable.
-