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 theMatcher
s which specify the behaviour of aFilterList
.Although this interface is called an Editor, the implementor should create new
Matcher
instances on each change rather than modifying the existingMatcher
s. This is becauseMatcher
s 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 class
MatcherEditor.Event<E>
A MatcherEditor event models a change in theMatcherEditor
that creates a newMatcher
.static interface
MatcherEditor.Listener<E>
A MatcherEditor.Listener handles changes fired by aMatcherEditor
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addMatcherEditorListener(MatcherEditor.Listener<E> listener)
Add a listener to be notified when this editor'sMatcher
changes.Matcher<E>
getMatcher()
Return the currentMatcher
specified by thisMatcherEditor
.void
removeMatcherEditorListener(MatcherEditor.Listener<E> listener)
Remove the listener so that it no longer receives notification when theMatcher
changes.
-
-
-
Method Detail
-
addMatcherEditorListener
void addMatcherEditorListener(MatcherEditor.Listener<E> listener)
Add a listener to be notified when this editor'sMatcher
changes.
-
removeMatcherEditorListener
void removeMatcherEditorListener(MatcherEditor.Listener<E> listener)
Remove the listener so that it no longer receives notification when theMatcher
changes.
-
getMatcher
Matcher<E> getMatcher()
Return the currentMatcher
specified by thisMatcherEditor
.- Returns:
- a non-null
Matcher
.
-
-