|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sciapp.filter.TableFilter
com.sciapp.filter.ValuesTableFilter
public class ValuesTableFilter
A table filter for filtering the rows of a TableModel based on a list of values.
This list of values is specified in the constructor and can be assigned later
on with the setValues(java.lang.Object[])
method.
Field Summary | |
---|---|
protected Object[] |
values
the list of accepted values |
Fields inherited from class com.sciapp.filter.TableFilter |
---|
ALL_COLUMNS, column, filter |
Constructor Summary | |
---|---|
ValuesTableFilter(Object[] values,
Filter filter)
Constructs a ValuesTableFilter. |
|
ValuesTableFilter(Object[] values,
Filter filter,
int column)
Constructs a ValuesTableFilter. |
Method Summary | |
---|---|
boolean |
filter(ListTableModel model,
Object row)
Decides whether a particular row of a JTable will be filtered. |
boolean |
filter(TableModel model,
int rowIndex)
Decides whether a particular row of a JTable will be filtered. |
Object[] |
getValues()
Retrieves the list of accepted values. |
void |
setValues(Object[] values)
Assigns the list of accepted values. |
Methods inherited from class com.sciapp.filter.TableFilter |
---|
getColumn, getFilter, setColumn, setFilter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Object[] values
Constructor Detail |
---|
public ValuesTableFilter(Object[] values, Filter filter)
public ValuesTableFilter(Object[] values, Filter filter, int column)
Method Detail |
---|
public boolean filter(ListTableModel model, Object row)
filter
in class TableFilter
model
- the ListTableModel that holds a reference to the tabular row datarow
- the row of the table to filter, represented as an object
public boolean filter(TableModel model, int rowIndex)
filter
in class TableFilter
model
- the TableModel that holds the unfiltered row datarowIndex
- the index of the row of the table to filter
public Object[] getValues()
public void setValues(Object[] values)
values
- an array containing the values that this table filter will allow
|
Copyright © 2005 Scientific Applications. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |