Package com.illumon.iris.gui.table
Interface FilteredModel
- All Superinterfaces:
TableModel
- All Known Subinterfaces:
QuickFilterable
- All Known Implementing Classes:
DBTableModel
,FilteredTableModel
,InputOverlayTableModel
,IrisTreeTableModel
public interface FilteredModel extends TableModel
This interface defines a table model that supports filtering.
-
Method Summary
Modifier and Type Method Description void
filterChanged()
Notify the implementation that the set of underlying filters have changed.com.fishlib.dataobjects.WColumnSet
getColumnSet()
Get the currentcolumn set
for the model.FilterStrategyImpl
getFilterStrategy()
Get theFilterStrategyImpl
in use.org.jdom2.Element[]
getSavedStrategies()
Get all of the saved strategy workspaceElement
sboolean
isFilterable(String column)
Check if the specified column is filterable.boolean
isFilteringOn()
Check if the model is currently being filtered.void
removeStrategy(String name)
Remove the globally saved filter of the specified name.void
saveStrategy(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 theFilterStrategyImpl
in use.- Returns:
- the FilterStrategy
-
getColumnSet
com.fishlib.dataobjects.WColumnSet getColumnSet()Get the currentcolumn set
for 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 workspaceElement
s- 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.
-