com.sciapp.filter
Class AndTableFilter
java.lang.Object
com.sciapp.filter.TableFilter
com.sciapp.filter.AndTableFilter
public class AndTableFilter
- extends TableFilter
A TableFilter that implements the logical AND operator on individual TableFilters.
Field Summary |
protected TableFilter[] |
tableFilters
The array of TableFilters on which the AND operator should be applied. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tableFilters
protected TableFilter[] tableFilters
- The array of TableFilters on which the AND operator should be applied.
AndTableFilter
public AndTableFilter(TableFilter[] tableFilters)
- Constructs an AndTableFilter with an array of TableFilters.
AndTableFilter
public AndTableFilter(TableFilter filter1,
TableFilter filter2)
- Constructs an AndTableFilter with two TableFilters.
filter
public boolean filter(ListTableModel model,
Object row)
- The AND operation.
The TableFilters specified in the constructor are applied to the given row and
the AND operation is applied to their results.
- Overrides:
filter
in class TableFilter
- 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 AND succeeds, false otherwise.