Package jaxx.runtime.swing.table.filter
Interface TableFilter<T extends JTable>
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractTableFilter,JTableFilter
public interface TableFilter<T extends JTable> extends Serializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceTableFilter.Row
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddChangeListener(FilterChangeListener listener)booleanapply(int col, Collection<Object> items)Apply filter for specified column based on collection of distinct itemsvoidclear()Clear the filterSet<Object>distinctValuesForColumn(int i)Collection<Object>getDistinctColumnItems(int column)Collection<Object>getFilterState(int column)TgetTable()The table under filterbooleanincludeRow(TableFilter.Row entry)booleanisFiltered(int column)Checks if column is filteredvoidmodelChanged(TableModel model)Describes what filter has to do when table model changesvoidremoveChangeListener(FilterChangeListener listener)StringtoString(Object o)
-
-
-
Method Detail
-
getTable
T getTable()
The table under filter- Returns:
-
getDistinctColumnItems
Collection<Object> getDistinctColumnItems(int column)
- Parameters:
column- model column index- Returns:
-
getFilterState
Collection<Object> getFilterState(int column)
- Parameters:
column- model column index- Returns:
-
isFiltered
boolean isFiltered(int column)
Checks if column is filtered- Parameters:
column- model column index- Returns:
- true if column is filtered
-
includeRow
boolean includeRow(TableFilter.Row entry)
-
apply
boolean apply(int col, Collection<Object> items)Apply filter for specified column based on collection of distinct items- Parameters:
col-items-- Returns:
-
addChangeListener
void addChangeListener(FilterChangeListener listener)
-
removeChangeListener
void removeChangeListener(FilterChangeListener listener)
-
clear
void clear()
Clear the filter
-
modelChanged
void modelChanged(TableModel model)
Describes what filter has to do when table model changes- Parameters:
model-
-
-