Class ComboBoxGlazedListsWithExcludeFilterStrategy<T>
java.lang.Object
org.eclipse.nebula.widgets.nattable.extension.glazedlists.filterrow.DefaultGlazedListsFilterStrategy<T>
org.eclipse.nebula.widgets.nattable.extension.glazedlists.filterrow.DefaultGlazedListsStaticFilterStrategy<T>
org.eclipse.nebula.widgets.nattable.extension.glazedlists.filterrow.ComboBoxGlazedListsFilterStrategy<T>
org.eclipse.nebula.widgets.nattable.extension.glazedlists.filterrow.ComboBoxGlazedListsWithExcludeFilterStrategy<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
IActivatableFilterStrategy<T>
,IFilterStrategy<T>
public class ComboBoxGlazedListsWithExcludeFilterStrategy<T>
extends ComboBoxGlazedListsFilterStrategy<T>
Specialized
ComboBoxGlazedListsFilterStrategy
that can be used to
exclude items from filtering. This means you can register a Matcher
that avoids that matching items get filtered by the filter row.- Since:
- 2.1
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.nebula.widgets.nattable.extension.glazedlists.filterrow.DefaultGlazedListsFilterStrategy
DefaultGlazedListsFilterStrategy.ColumnTextFilterator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<ca.odell.glazedlists.matchers.Matcher<T>,
ca.odell.glazedlists.matchers.MatcherEditor<T>> Fields inherited from class org.eclipse.nebula.widgets.nattable.extension.glazedlists.filterrow.DefaultGlazedListsStaticFilterStrategy
staticMatcherEditor
Fields inherited from class org.eclipse.nebula.widgets.nattable.extension.glazedlists.filterrow.DefaultGlazedListsFilterStrategy
columnAccessor, configRegistry, filterList, filterLock
-
Constructor Summary
ConstructorsConstructorDescriptionComboBoxGlazedListsWithExcludeFilterStrategy
(FilterRowComboBoxDataProvider<T> comboBoxDataProvider, ca.odell.glazedlists.FilterList<T> filterList, IColumnAccessor<T> columnAccessor, IConfigRegistry configRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Activate additional filter logic so it gets applied on the next filter operation, e.g.void
addExcludeFilter
(ca.odell.glazedlists.matchers.Matcher<T> matcher) Add a exclude filter to this filter strategy which will always be applied additionally to any other filter to exclude from filtering.void
addExcludeFilter
(ca.odell.glazedlists.matchers.MatcherEditor<T> matcherEditor) Add a exclude filter to this filter strategy which will always be applied additionally to any other filter to exclude items from filtering.void
Removes all applied exclude filters from this filter strategy.void
Deactivate additional filter logic so it does not get applied on the next filter operation, e.g.void
removeExcludeFilter
(ca.odell.glazedlists.matchers.Matcher<T> matcher) Remove the exclude filter from this filter strategy.void
removeExcludeFilter
(ca.odell.glazedlists.matchers.MatcherEditor<T> matcherEditor) Remove the exclude filter from this filter strategy.Methods inherited from class org.eclipse.nebula.widgets.nattable.extension.glazedlists.filterrow.ComboBoxGlazedListsFilterStrategy
applyFilter, filterCollectionsEqual, getStringFromColumnObject, hasComboBoxFilterEditorRegistered
Methods inherited from class org.eclipse.nebula.widgets.nattable.extension.glazedlists.filterrow.DefaultGlazedListsStaticFilterStrategy
addStaticFilter, addStaticFilter, clearStaticFilter, isActive, removeStaticFilter, removeStaticFilter
Methods inherited from class org.eclipse.nebula.widgets.nattable.extension.glazedlists.filterrow.DefaultGlazedListsFilterStrategy
containsMatcherEditor, getColumnValueProvider, getFilterContentDisplayConverter, getGlazedListsTextMatcherEditorMode, getMatcherEditor, getTextFilterator, getTextMatcherEditor, getThresholdMatcherEditor, matcherEditorEqual
-
Field Details
-
excludeMatcherEditor
-
-
Constructor Details
-
ComboBoxGlazedListsWithExcludeFilterStrategy
public ComboBoxGlazedListsWithExcludeFilterStrategy(FilterRowComboBoxDataProvider<T> comboBoxDataProvider, ca.odell.glazedlists.FilterList<T> filterList, IColumnAccessor<T> columnAccessor, IConfigRegistry configRegistry) - Parameters:
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.filterList
- 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 from
-
-
Method Details
-
addExcludeFilter
Add a exclude filter to this filter strategy which will always be applied additionally to any other filter to exclude from filtering.- Parameters:
matcher
- the exclude filter to add
-
addExcludeFilter
Add a exclude filter to this filter strategy which will always be applied additionally to any other filter to exclude items from filtering.- Parameters:
matcherEditor
- the exclude filter to add
-
removeExcludeFilter
Remove the exclude filter from this filter strategy.- Parameters:
matcher
- the filter to remove
-
removeExcludeFilter
Remove the exclude filter from this filter strategy.- Parameters:
matcherEditor
- the filter to remove
-
clearExcludeFilter
public void clearExcludeFilter()Removes all applied exclude filters from this filter strategy. -
activateFilterStrategy
public void activateFilterStrategy()Description copied from interface:IActivatableFilterStrategy
Activate additional filter logic so it gets applied on the next filter operation, e.g. static or exclude filters. By default does nothing.- Specified by:
activateFilterStrategy
in interfaceIActivatableFilterStrategy<T>
- Overrides:
activateFilterStrategy
in classDefaultGlazedListsStaticFilterStrategy<T>
-
deactivateFilterStrategy
public void deactivateFilterStrategy()Description copied from interface:IActivatableFilterStrategy
Deactivate additional filter logic so it does not get applied on the next filter operation, e.g. static or exclude filters. By default does nothing.- Specified by:
deactivateFilterStrategy
in interfaceIActivatableFilterStrategy<T>
- Overrides:
deactivateFilterStrategy
in classDefaultGlazedListsStaticFilterStrategy<T>
-