com.jidesoft.grid
Class AbstractTableFilter<T>
java.lang.Object
com.jidesoft.filter.AbstractFilter<T>
com.jidesoft.grid.AbstractFilter<T>
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
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 interface com.jidesoft.filter.Filter |
addFilterListener, clone, getFilterFactory, getFilterFactoryName, getName, getPreference, isEnabled, isValueFiltered, removeFilterListener, setEnabled, setFilterFactory, setFilterFactoryName, setName, setPreference, stricterThan |
AbstractTableFilter
protected AbstractTableFilter()
AbstractTableFilter
protected AbstractTableFilter(String name)
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