Package ca.odell.glazedlists.matchers
Interface MatcherEditor<E>
-
- All Known Implementing Classes:
AbstractMatcherEditor,AbstractMatcherEditorListenerSupport,CompositeMatcherEditor,RangeMatcherEditor,SearchEngineTextFieldMatcherEditor,SearchEngineTextMatcherEditor,TextComponentMatcherEditor,TextMatcherEditor,ThreadedMatcherEditor,ThresholdMatcherEditor
public interface MatcherEditor<E>A facility for modifying theMatchers which specify the behaviour of aFilterList.Although this interface is called an Editor, the implementor should create new
Matcherinstances on each change rather than modifying the existingMatchers. This is becauseMatchers work best when they are immutable. Further information on this immutability can be found in theMatcher Javadoc.- Author:
- Rob Eden, Jesse Wilson, James Lemieux
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMatcherEditor.Event<E>A MatcherEditor event models a change in theMatcherEditorthat creates a newMatcher.static interfaceMatcherEditor.Listener<E>A MatcherEditor.Listener handles changes fired by aMatcherEditor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddMatcherEditorListener(MatcherEditor.Listener<E> listener)Add a listener to be notified when this editor'sMatcherchanges.Matcher<E>getMatcher()Return the currentMatcherspecified by thisMatcherEditor.voidremoveMatcherEditorListener(MatcherEditor.Listener<E> listener)Remove the listener so that it no longer receives notification when theMatcherchanges.
-
-
-
Method Detail
-
addMatcherEditorListener
void addMatcherEditorListener(MatcherEditor.Listener<E> listener)
Add a listener to be notified when this editor'sMatcherchanges.
-
removeMatcherEditorListener
void removeMatcherEditorListener(MatcherEditor.Listener<E> listener)
Remove the listener so that it no longer receives notification when theMatcherchanges.
-
getMatcher
Matcher<E> getMatcher()
Return the currentMatcherspecified by thisMatcherEditor.- Returns:
- a non-null
Matcher.
-
-