public interface TableFilter<T extends JTable> extends Serializable
| Modifier and Type | Interface and Description |
|---|---|
static interface |
TableFilter.Row |
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(FilterChangeListener listener) |
boolean |
apply(int col,
Collection<Object> items)
Apply filter for specified column based on collection of distinct items
|
void |
clear()
Clear the filter
|
Set<Object> |
distinctValuesForColumn(int i) |
Collection<Object> |
getDistinctColumnItems(int column) |
Collection<Object> |
getFilterState(int column) |
T |
getTable()
The table under filter
|
boolean |
includeRow(TableFilter.Row entry) |
boolean |
isFiltered(int column)
Checks if column is filtered
|
void |
modelChanged(TableModel model)
Describes what filter has to do when table model changes
|
void |
removeChangeListener(FilterChangeListener listener) |
String |
toString(Object o) |
T getTable()
Collection<Object> getDistinctColumnItems(int column)
column - model column indexCollection<Object> getFilterState(int column)
column - model column indexboolean isFiltered(int column)
column - model column indexboolean includeRow(TableFilter.Row entry)
boolean apply(int col,
Collection<Object> items)
col - items - void addChangeListener(FilterChangeListener listener)
void removeChangeListener(FilterChangeListener listener)
void clear()
void modelChanged(TableModel model)
model - Copyright © 2004–2017 Ultreia.io. All rights reserved.