com.sciapp.filter
Class NotTableFilter

java.lang.Object
  extended by com.sciapp.filter.TableFilter
      extended by com.sciapp.filter.NotTableFilter

public class NotTableFilter
extends TableFilter

A TableFilter that implements the logical NEGATION operator.


Field Summary
protected  TableFilter tableFilter
          The TableFilter to negate.
 
Fields inherited from class com.sciapp.filter.TableFilter
ALL_COLUMNS, column, filter
 
Constructor Summary
NotTableFilter(TableFilter tableFilter)
          Constructs a NotTableFilter.
 
Method Summary
 boolean filter(ListTableModel model, Object row)
          The NEGATION operation.
 TableFilter getTableFilter()
          Returns the TableFilter that is negated.
 void setColumn(int column)
          Sets the column to filter.
 
Methods inherited from class com.sciapp.filter.TableFilter
getColumn, getFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableFilter

protected TableFilter tableFilter
The TableFilter to negate.

Constructor Detail

NotTableFilter

public NotTableFilter(TableFilter tableFilter)
Constructs a NotTableFilter.

Method Detail

filter

public boolean filter(ListTableModel model,
                      Object row)
The NEGATION operation. The TableFilter specified in the constructor is applied to the given row and its result is negated.

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:
the negation of the normal operation of tableFilter

getTableFilter

public TableFilter getTableFilter()
Returns the TableFilter that is negated.

Returns:
the TableFilter that is negated.

setColumn

public void setColumn(int column)
Sets the column to filter. ALL_COLUMNS indicates that all columns should be filtered.

Overrides:
setColumn in class TableFilter
Parameters:
column - the column of the table to filter