Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.table.group
Class TableColumnFilter

java.lang.Object
  extended by com.citra.filter.TableFilter
      extended by com.citra.filter.ValuesTableFilter
          extended by com.citra.table.group.TableColumnFilter
All Implemented Interfaces:
Serializable

public class TableColumnFilter
extends ValuesTableFilter

TableColumnFilter filters table columns based on their model index.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.citra.filter.ValuesTableFilter
values
 
Fields inherited from class com.citra.filter.TableFilter
ALL_COLUMNS, column, filter
 
Constructor Summary
TableColumnFilter(Object[] values, int column)
          Constructs a TableColumnFilter.
 
Method Summary
 boolean filter(ListTableModel model, Object row)
          Decides whether a particular row of a JTable will be filtered. An alternative to this method is filter(TableModel m, int rowIndex).
 boolean filter(TableModel model, int rowIndex)
          Decides whether a particular row of a JTable will be filtered. This method is presented as an alternative to filter(ListTableModel ltm, Object o).
 
Methods inherited from class com.citra.filter.ValuesTableFilter
getValues, setValues
 
Methods inherited from class com.citra.filter.TableFilter
getColumn, getFilter, setColumn, setFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableColumnFilter

public TableColumnFilter(Object[] values,
                         int column)
Constructs a TableColumnFilter.

Method Detail

filter

public boolean filter(ListTableModel model,
                      Object row)
Decides whether a particular row of a JTable will be filtered. An alternative to this method is filter(TableModel m, int rowIndex).

Overrides:
filter in class ValuesTableFilter
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 row is to be filtered, false otherwise

filter

public boolean filter(TableModel model,
                      int rowIndex)
Decides whether a particular row of a JTable will be filtered. This method is presented as an alternative to filter(ListTableModel ltm, Object o).

Overrides:
filter in class ValuesTableFilter
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 row is to be filtered, false otherwise

Copyright © 2011 Citra Technologies. All Rights Reserved.