T
- the type of the objects shown within the NatTablepublic class DefaultGlazedListsStaticFilterStrategy<T> extends DefaultGlazedListsFilterStrategy<T>
IFilterStrategy
for the filter row which can
also take static filters and combine them with the filter logic from the filter row.Modifier and Type | Field and Description |
---|---|
protected Map<ca.odell.glazedlists.matchers.Matcher<T>,ca.odell.glazedlists.matchers.MatcherEditor<T>> |
staticMatcherEditor |
columnAccessor, configRegistry, matcherEditor
Constructor and Description |
---|
DefaultGlazedListsStaticFilterStrategy(ca.odell.glazedlists.matchers.CompositeMatcherEditor<T> matcherEditor,
IColumnAccessor<T> columnAccessor,
IConfigRegistry configRegistry) |
Modifier and Type | Method and Description |
---|---|
void |
addStaticFilter(ca.odell.glazedlists.matchers.Matcher<T> matcher)
Add a static filter to this filter strategy which will always be applied additionally
to any other filter.
|
void |
addStaticFilter(ca.odell.glazedlists.matchers.MatcherEditor<T> matcherEditor)
Add a static filter to this filter strategy which will always be applied additionally
to any other filter.
|
void |
applyFilter(Map<Integer,Object> filterIndexToObjectMap)
Create GlazedLists matcher editors and apply them to facilitate filtering.
|
void |
removeStaticFilter(ca.odell.glazedlists.matchers.Matcher<T> matcher)
Remove the static filter from this filter strategy.
|
void |
removeStaticFilter(ca.odell.glazedlists.matchers.MatcherEditor<T> matcherEditor)
Remove the static filter from this filter strategy.
|
getColumnValueProvider, getGlazedListsTextMatcherEditorMode, getStringFromColumnObject, getTextFilterator, getTextMatcherEditor, getThresholdMatcherEditor
public DefaultGlazedListsStaticFilterStrategy(ca.odell.glazedlists.matchers.CompositeMatcherEditor<T> matcherEditor, IColumnAccessor<T> columnAccessor, IConfigRegistry configRegistry)
public void applyFilter(Map<Integer,Object> filterIndexToObjectMap)
applyFilter
in interface IFilterStrategy<T>
applyFilter
in class DefaultGlazedListsFilterStrategy<T>
filterIndexToObjectMap
- A Map of column indexes to filter text Strings.public void addStaticFilter(ca.odell.glazedlists.matchers.Matcher<T> matcher)
matcher
- the static filter to addpublic void addStaticFilter(ca.odell.glazedlists.matchers.MatcherEditor<T> matcherEditor)
matcherEditor
- the static filter to addpublic void removeStaticFilter(ca.odell.glazedlists.matchers.Matcher<T> matcher)
matcher
- the filter to removepublic void removeStaticFilter(ca.odell.glazedlists.matchers.MatcherEditor<T> matcherEditor)
matcherEditor
- the filter to removeCopyright © 2013. All Rights Reserved.