|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sciapp.filter.TableFilter
public class TableFilter
TableFilter is used in order to filter the rows of a JTable.
Field Summary | |
---|---|
static int |
ALL_COLUMNS
Field specifying all columns of a table. |
protected int |
column
The column of the table to filter |
protected Filter |
filter
The filter being used. |
Constructor Summary | |
---|---|
TableFilter(Filter filter)
Constructs a TableFilter object that will filter all columns of the table. |
|
TableFilter(Filter filter,
int column)
Constructs a TableFilter object. |
Method Summary | |
---|---|
boolean |
filter(ListTableModel model,
Object row)
Decides whether a particular row of a JTable will be filtered. |
int |
getColumn()
Returns the column to filter. |
Filter |
getFilter()
Returns the filter that will be used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Filter filter
protected int column
public static final int ALL_COLUMNS
Constructor Detail |
---|
public TableFilter(Filter filter)
filter
- the filter that will be usedpublic TableFilter(Filter filter, int column)
filter
- the filter that will be usedcolumn
- the column of the table to filter. ALL_COLUMNS specifies filtering of data on all columns.Method Detail |
---|
public boolean filter(ListTableModel model, Object row)
model
- the ListTableModel that holds a reference to the tabular row datarow
- the row of the table to filter, represented as an object
public int getColumn()
public Filter getFilter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |