Copyright © 2005 Scientific Applications. All Rights Reserved.

com.sciapp.filter
Class NotTableFilter

java.lang.Object
  extended by com.sciapp.filter.TableFilter
      extended by com.sciapp.filter.NotTableFilter
All Implemented Interfaces:
Serializable

public class NotTableFilter
extends TableFilter

A TableFilter that implements the logical NEGATION operator.

See Also:
Serialized Form

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.
 boolean filter(TableModel model, int rowIndex)
          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, setFilter
 
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

filter

public boolean filter(TableModel model,
                      int rowIndex)
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 TableModel that holds the unfiltered row data
rowIndex - the index of the row of the table to filter
Returns:
the negation of the normal operation of tableFilter

Copyright © 2005 Scientific Applications. All Rights Reserved.