|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITableFilter<T extends JTable>
| Nested Class Summary | |
|---|---|
static interface |
ITableFilter.Row
|
| Method Summary | |
|---|---|
void |
addChangeListener(IFilterChangeListener listener)
|
boolean |
apply(int col,
Collection<DistinctColumnItem> items)
Apply filter for specified column based on collection of distinct items |
void |
clear()
Clear the filter |
Collection<DistinctColumnItem> |
getDistinctColumnItems(int column)
|
Collection<DistinctColumnItem> |
getFilterState(int column)
|
T |
getTable()
The table under filter |
boolean |
includeRow(ITableFilter.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 |
removeChnageListener(IFilterChangeListener listener)
|
| Method Detail |
|---|
T getTable()
Collection<DistinctColumnItem> getDistinctColumnItems(int column)
column - model column index
Collection<DistinctColumnItem> getFilterState(int column)
column - model column index
boolean isFiltered(int column)
column - model column index
boolean includeRow(ITableFilter.Row entry)
boolean apply(int col,
Collection<DistinctColumnItem> items)
col - items -
void addChangeListener(IFilterChangeListener listener)
void removeChnageListener(IFilterChangeListener listener)
void clear()
void modelChanged(TableModel model)
model -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||