com.citra.filter
Class OrTableFilter
java.lang.Object
com.citra.filter.TableFilter
com.citra.filter.CompositeFilter
com.citra.filter.OrTableFilter
- All Implemented Interfaces:
- Serializable
public class OrTableFilter
- extends CompositeFilter
A TableFilter that implements the logical OR operator on individual TableFilters.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrTableFilter
public OrTableFilter(TableFilter[] tableFilters)
- Constructs an OrTableFilter with an array of TableFilters.
OrTableFilter
public OrTableFilter(TableFilter filter1,
TableFilter filter2)
- Constructs an OrTableFilter with two TableFilters.
filter
public boolean filter(ListTableModel model,
Object row)
- The OR operation.
The TableFilters specified in the constructor are applied to the given row and
the OR 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 OR succeeds, false otherwise.
filter
public boolean filter(TableModel model,
int rowIndex)
- The OR operation.
The TableFilters specified in the constructor are applied to the given row and
the OR operation is applied to their results.
- Overrides:
filter
in class TableFilter
- Parameters:
model
- the TableModel that holds the unfiltered row datarowIndex
- the index of the row of the table to filter
- Returns:
- true if the OR succeeds, false otherwise.