public class ComboBoxGlazedListsFilterStrategy<T> extends DefaultGlazedListsStaticFilterStrategy<T>
The special case in here is that if nothing is selected in the filter combobox, then everything should be filtered.
staticMatcherEditor
columnAccessor, configRegistry, matcherEditor
Constructor and Description |
---|
ComboBoxGlazedListsFilterStrategy(FilterRowComboBoxDataProvider<T> comboBoxDataProvider,
ca.odell.glazedlists.matchers.CompositeMatcherEditor<T> matcherEditor,
IColumnAccessor<T> columnAccessor,
IConfigRegistry configRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
applyFilter(Map<Integer,Object> filterIndexToObjectMap)
Create GlazedLists matcher editors and apply them to facilitate filtering.
|
protected String |
getStringFromColumnObject(int columnIndex,
Object object)
Converts the object inserted to the filter cell at the given column position to the corresponding String.
|
addStaticFilter, addStaticFilter, removeStaticFilter, removeStaticFilter
getColumnValueProvider, getGlazedListsTextMatcherEditorMode, getTextFilterator, getTextMatcherEditor, getThresholdMatcherEditor
public ComboBoxGlazedListsFilterStrategy(FilterRowComboBoxDataProvider<T> comboBoxDataProvider, ca.odell.glazedlists.matchers.CompositeMatcherEditor<T> matcherEditor, IColumnAccessor<T> columnAccessor, IConfigRegistry configRegistry)
comboBoxDataProvider
- The FilterRowComboBoxDataProvider needed to determine whether
filters should applied or not. If there are no values specified for filtering of
a column then everything should be filtered, if all possible values are given as
filter then no filter needs to be applied.matcherEditor
- The CompositeMatcherEditor that is used for GlazedLists filteringcolumnAccessor
- The IColumnAccessor needed to access the row data to perform filteringconfigRegistry
- The IConfigRegistry to retrieve several configurations frompublic void applyFilter(Map<Integer,Object> filterIndexToObjectMap)
DefaultGlazedListsStaticFilterStrategy
applyFilter
in interface IFilterStrategy<T>
applyFilter
in class DefaultGlazedListsStaticFilterStrategy<T>
filterIndexToObjectMap
- A Map of column indexes to filter text Strings.protected String getStringFromColumnObject(int columnIndex, Object object)
This implementation is able to handle Collections and will generate a regular expression containing all values in the Collection.
getStringFromColumnObject
in class DefaultGlazedListsFilterStrategy<T>
columnIndex
- The column index of the filter cell that should be processed.object
- The value set to the filter cell that needs to be convertedCopyright © 2013. All Rights Reserved.