com.jidesoft.grid
Interface DynamicTableFilter<T>
- All Superinterfaces:
- Cloneable, Filter<T>, Serializable, TableFilter<T>
- All Known Implementing Classes:
- AbstractDynamicTableFilter
public interface DynamicTableFilter<T>
- extends TableFilter<T>
DynamicFilter
extends Filter
interface to allow you to customize the filter just before it
is used.
Methods inherited from interface com.jidesoft.filter.Filter |
addFilterListener, clone, getFilterFactory, getFilterFactoryName, getName, getPreference, isEnabled, isValueFiltered, removeFilterListener, setEnabled, setFilterFactory, setFilterFactoryName, setName, setPreference, stricterThan |
initializeFilter
boolean initializeFilter(TableModel tableModel,
int columnIndex,
Object[] possibleValues)
- Initialize the filter. The
Filter.isValueFiltered(Object)
should do the filtering after the filter is
initialized.
- Parameters:
tableModel
- columnIndex
- possibleValues
-
- Returns:
- true if a filter is initialized. Otherwise returns false. For example, you can popup a dialog in this
method to customize a filter. If user cancelled this dialog, you should return false.