com.citra.table.group
Class TableColumnFilter
java.lang.Object
com.citra.filter.TableFilter
com.citra.filter.ValuesTableFilter
com.citra.table.group.TableColumnFilter
- All Implemented Interfaces:
- Serializable
public class TableColumnFilter
- extends ValuesTableFilter
TableColumnFilter filters table columns based on their model index.
- See Also:
- Serialized Form
Method Summary |
boolean |
filter(ListTableModel model,
Object row)
Decides whether a particular row of a JTable will be filtered.
An alternative to this method is filter(TableModel m, int rowIndex). |
boolean |
filter(TableModel model,
int rowIndex)
Decides whether a particular row of a JTable will be filtered.
This method is presented as an alternative to filter(ListTableModel ltm, Object o). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableColumnFilter
public TableColumnFilter(Object[] values,
int column)
- Constructs a TableColumnFilter.
filter
public boolean filter(ListTableModel model,
Object row)
- Decides whether a particular row of a JTable will be filtered.
An alternative to this method is filter(TableModel m, int rowIndex).
- Overrides:
filter
in class ValuesTableFilter
- Parameters:
model
- the ListTableModel that holds a reference to the tabular row datarow
- the row of the table to filter, represented as an object
- Returns:
- true if the row is to be filtered, false otherwise
filter
public boolean filter(TableModel model,
int rowIndex)
- Decides whether a particular row of a JTable will be filtered.
This method is presented as an alternative to filter(ListTableModel ltm, Object o).
- Overrides:
filter
in class ValuesTableFilter
- Parameters:
model
- the TableModel that holds the unfiltered row datarowIndex
- the index of the row of the table to filter
- Returns:
- true if the row is to be filtered, false otherwise