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 forMatcherEditorimplementations that handles the details of dealing with registeredMatcherEditor.Listeners. 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 voidaddMatcherEditorListener(MatcherEditor.Listener<E> listener)Add a listener to be notified when this editor'sMatcherchanges.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 voidfireChangedMatcher(MatcherEditor.Event<E> event)delivers the given matcher event to all registered listeners.voidremoveMatcherEditorListener(MatcherEditor.Listener<E> listener)Remove the listener so that it no longer receives notification when theMatcherchanges.-
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'sMatcherchanges.- Specified by:
addMatcherEditorListenerin interfaceMatcherEditor<E>
-
removeMatcherEditorListener
public final void removeMatcherEditorListener(MatcherEditor.Listener<E> listener)
Remove the listener so that it no longer receives notification when theMatcherchanges.- Specified by:
removeMatcherEditorListenerin 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.
-
-