Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.filter
Class OrTableFilter

java.lang.Object
  extended by com.sciapp.filter.TableFilter
      extended by com.sciapp.filter.CompositeFilter
          extended by com.sciapp.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

Field Summary
 
Fields inherited from class com.sciapp.filter.CompositeFilter
tableFilters
 
Fields inherited from class com.sciapp.filter.TableFilter
ALL_COLUMNS, column, filter
 
Constructor Summary
OrTableFilter(TableFilter[] tableFilters)
          Constructs an OrTableFilter with an array of TableFilters.
OrTableFilter(TableFilter filter1, TableFilter filter2)
          Constructs an OrTableFilter with two TableFilters.
 
Method Summary
 boolean filter(ListTableModel model, Object row)
          The OR operation.
 boolean filter(TableModel model, int rowIndex)
          The OR operation.
 
Methods inherited from class com.sciapp.filter.CompositeFilter
getTableFilters, setColumn
 
Methods inherited from class com.sciapp.filter.TableFilter
getColumn, getFilter, setFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.

Method Detail

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 data
row - 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 data
rowIndex - the index of the row of the table to filter
Returns:
true if the OR succeeds, false otherwise.

Copyright © 2005 Scientific Applications. All Rights Reserved.