JIDE 3.5.15

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.


Field Summary
 
Fields inherited from interface com.jidesoft.filter.Filter
ALL, CUSTOM, NULL, SEPARATOR
 
Method Summary
 boolean initializeFilter(TableModel tableModel, int columnIndex, Object[] possibleValues)
          Initialize the filter.
 
Methods inherited from interface com.jidesoft.grid.TableFilter
getColumnIndex, getRowIndex, setColumnIndex, setRowIndex
 
Methods inherited from interface com.jidesoft.filter.Filter
addFilterListener, clone, getFilterFactory, getFilterFactoryName, getName, getPreference, isEnabled, isValueFiltered, removeFilterListener, setEnabled, setFilterFactory, setFilterFactoryName, setName, setPreference, stricterThan
 

Method Detail

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.

JIDE 3.5.15