JIDE 3.5.15

com.jidesoft.list
Class AbstractListFilter<T>

java.lang.Object
  extended by com.jidesoft.filter.AbstractFilter<T>
      extended by com.jidesoft.grid.AbstractFilter<T>
          extended by 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

Field Summary
 
Fields inherited from interface com.jidesoft.filter.Filter
ALL, CUSTOM, NULL, SEPARATOR
 
Constructor Summary
protected AbstractListFilter()
           
protected AbstractListFilter(String name)
           
 
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 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

AbstractListFilter

protected AbstractListFilter()

AbstractListFilter

protected AbstractListFilter(String name)
Method Detail

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>

JIDE 3.5.15