com.jidesoft.list
Class AbstractListFilter<T>
java.lang.Object
com.jidesoft.filter.AbstractFilter<T>
com.jidesoft.grid.AbstractFilter<T>
com.jidesoft.list.AbstractListFilter<T>
- All Implemented Interfaces:
- Filter<T>, ObjectGrouperSupport, ListFilter<T>, Serializable, Cloneable
public abstract class AbstractListFilter<T>
- extends AbstractFilter<T>
- implements ListFilter<T>
AbstractListFilter
is a special Filter
for ListModel. It has row index. When you implement
Filter.isValueFiltered(Object)
, you can call getRowIndex()
to find out which row the value comes from. You
should only use this filter with FilterableListModel
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
Method Summary |
int |
getRowIndex()
Gets the row index in the ListModel. |
void |
setRowIndex(int rowIndex)
Sets the row index in the ListModel. |
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 |
AbstractListFilter
protected AbstractListFilter()
AbstractListFilter
protected AbstractListFilter(String name)
getRowIndex
public int getRowIndex()
- Description copied from interface:
ListFilter
- Gets the row index in the ListModel.
- Specified by:
getRowIndex
in interface ListFilter<T>
- Returns:
- the row index.
setRowIndex
public void setRowIndex(int rowIndex)
- Description copied from interface:
ListFilter
- Sets the row index in the ListModel.
- Specified by:
setRowIndex
in interface ListFilter<T>