JIDE 3.5.15

com.jidesoft.grid
Class AbstractTableFilter<T>

java.lang.Object
  extended by com.jidesoft.filter.AbstractFilter<T>
      extended by com.jidesoft.grid.AbstractFilter<T>
          extended by com.jidesoft.grid.AbstractTableFilter<T>
All Implemented Interfaces:
Filter<T>, ObjectGrouperSupport, TableFilter<T>, Serializable, Cloneable
Direct Known Subclasses:
AbstractDynamicTableFilter, MultipleValuesFilter, QuickTableFilterField.FieldTableFilter, SingleValueFilter

public abstract class AbstractTableFilter<T>
extends AbstractFilter<T>
implements TableFilter<T>

AbstractTableFilter is a special Filter for TableModel. It has row index and column index. When you implement Filter.isValueFiltered(Object), you can call getRowIndex() and getColumnIndex() to find out which cell the value comes from. You should only use this filter with FilterableTableModel which will fill the row and column index..

Please note, this class extends com.jidesoft.grid.AbstractFilter for backward compatible reason. It will change to extend com.jidesoft.filter.AbstractFilter after a few releases.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.jidesoft.filter.Filter
ALL, CUSTOM, NULL, SEPARATOR
 
Constructor Summary
protected AbstractTableFilter()
           
protected AbstractTableFilter(String name)
           
 
Method Summary
 int getColumnIndex()
          Gets the column index.
 int getRowIndex()
          Gets the row index.
 void setColumnIndex(int columnIndex)
          Sets the column index in TableModel.
 void setRowIndex(int rowIndex)
          Sets the row index in TableModel.
 
Methods inherited from class com.jidesoft.filter.AbstractFilter
addFilterListener, clone, fireFilterChanged, fireFilterContentChanged, fireFilterDisabled, fireFilterEnabled, fireFilterNameChanged, getConditionString, getFilterFactory, getFilterFactoryName, getFilterListeners, getName, getObjectGrouper, getObjectGrouperName, getPreference, isEnabled, isFilterValid, removeFilterListener, setEnabled, setFilterFactory, setFilterFactoryName, setName, setObjectGrouper, setObjectGrouperName, setPreference, stricterThan
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jidesoft.filter.Filter
addFilterListener, clone, getFilterFactory, getFilterFactoryName, getName, getPreference, isEnabled, isValueFiltered, removeFilterListener, setEnabled, setFilterFactory, setFilterFactoryName, setName, setPreference, stricterThan
 

Constructor Detail

AbstractTableFilter

protected AbstractTableFilter()

AbstractTableFilter

protected AbstractTableFilter(String name)
Method Detail

getColumnIndex

public int getColumnIndex()
Description copied from interface: TableFilter
Gets the column index.

Specified by:
getColumnIndex in interface TableFilter<T>
Returns:
column index.

setColumnIndex

public void setColumnIndex(int columnIndex)
Description copied from interface: TableFilter
Sets the column index in TableModel.

Specified by:
setColumnIndex in interface TableFilter<T>
Parameters:
columnIndex - the column index

getRowIndex

public int getRowIndex()
Description copied from interface: TableFilter
Gets the row index.

Specified by:
getRowIndex in interface TableFilter<T>
Returns:
row index.

setRowIndex

public void setRowIndex(int rowIndex)
Description copied from interface: TableFilter
Sets the row index in TableModel.

Specified by:
setRowIndex in interface TableFilter<T>
Parameters:
rowIndex - the row index

JIDE 3.5.15