Package ca.odell.glazedlists.matchers
Class AbstractMatcherEditorListenerSupport<E>
- java.lang.Object
-
- ca.odell.glazedlists.matchers.AbstractMatcherEditorListenerSupport<E>
-
- All Implemented Interfaces:
MatcherEditor<E>
- Direct Known Subclasses:
AbstractMatcherEditor
,ThreadedMatcherEditor
public abstract class AbstractMatcherEditorListenerSupport<E> extends java.lang.Object implements MatcherEditor<E>
Basic building block forMatcherEditor
implementations that handles the details of dealing with registeredMatcherEditor.Listener
s. In addition, it provides helper methods for creating matcher events.- Author:
- Holger Brands
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ca.odell.glazedlists.matchers.MatcherEditor
MatcherEditor.Event<E>, MatcherEditor.Listener<E>
-
-
Constructor Summary
Constructors Constructor Description AbstractMatcherEditorListenerSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMatcherEditorListener(MatcherEditor.Listener<E> listener)
Add a listener to be notified when this editor'sMatcher
changes.protected MatcherEditor.Event<E>
createChangedEvent(Matcher<E> matcher)
creates a changed event.protected MatcherEditor.Event<E>
createConstrainedEvent(Matcher<E> matcher)
creates a constrained event.protected MatcherEditor.Event<E>
createMatchAllEvent(Matcher<E> matcher)
creates a match all event.protected MatcherEditor.Event<E>
createMatchNoneEvent(Matcher<E> matcher)
creates a match none event.protected MatcherEditor.Event<E>
createRelaxedEvent(Matcher<E> matcher)
creates a relaxed event.protected void
fireChangedMatcher(MatcherEditor.Event<E> event)
delivers the given matcher event to all registered listeners.void
removeMatcherEditorListener(MatcherEditor.Listener<E> listener)
Remove the listener so that it no longer receives notification when theMatcher
changes.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ca.odell.glazedlists.matchers.MatcherEditor
getMatcher
-
-
-
-
Method Detail
-
addMatcherEditorListener
public final void addMatcherEditorListener(MatcherEditor.Listener<E> listener)
Add a listener to be notified when this editor'sMatcher
changes.- Specified by:
addMatcherEditorListener
in interfaceMatcherEditor<E>
-
removeMatcherEditorListener
public final void removeMatcherEditorListener(MatcherEditor.Listener<E> listener)
Remove the listener so that it no longer receives notification when theMatcher
changes.- Specified by:
removeMatcherEditorListener
in interfaceMatcherEditor<E>
-
fireChangedMatcher
protected final void fireChangedMatcher(MatcherEditor.Event<E> event)
delivers the given matcher event to all registered listeners.
-
createChangedEvent
protected final MatcherEditor.Event<E> createChangedEvent(Matcher<E> matcher)
creates a changed event.
-
createConstrainedEvent
protected final MatcherEditor.Event<E> createConstrainedEvent(Matcher<E> matcher)
creates a constrained event.
-
createRelaxedEvent
protected final MatcherEditor.Event<E> createRelaxedEvent(Matcher<E> matcher)
creates a relaxed event.
-
createMatchNoneEvent
protected final MatcherEditor.Event<E> createMatchNoneEvent(Matcher<E> matcher)
creates a match none event.
-
createMatchAllEvent
protected final MatcherEditor.Event<E> createMatchAllEvent(Matcher<E> matcher)
creates a match all event.
-
-