public abstract class AbstractMatcherEditorListenerSupport<E> extends Object implements MatcherEditor<E>
MatcherEditor
implementations that handles the details of
dealing with registered Listener
s. In addition, it provides helper methods for creating
matcher events.MatcherEditor.Event<E>, MatcherEditor.Listener<E>
Constructor and Description |
---|
AbstractMatcherEditorListenerSupport() |
Modifier and Type | Method and Description |
---|---|
void |
addMatcherEditorListener(MatcherEditor.Listener<E> listener)
Add a listener to be notified when this editor's
Matcher 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 the
Matcher
changes. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMatcher
public AbstractMatcherEditorListenerSupport()
public final void addMatcherEditorListener(MatcherEditor.Listener<E> listener)
Matcher
changes.addMatcherEditorListener
in interface MatcherEditor<E>
public final void removeMatcherEditorListener(MatcherEditor.Listener<E> listener)
Matcher
changes.removeMatcherEditorListener
in interface MatcherEditor<E>
protected final void fireChangedMatcher(MatcherEditor.Event<E> event)
protected final MatcherEditor.Event<E> createChangedEvent(Matcher<E> matcher)
protected final MatcherEditor.Event<E> createConstrainedEvent(Matcher<E> matcher)
protected final MatcherEditor.Event<E> createRelaxedEvent(Matcher<E> matcher)
protected final MatcherEditor.Event<E> createMatchNoneEvent(Matcher<E> matcher)
protected final MatcherEditor.Event<E> createMatchAllEvent(Matcher<E> matcher)
Copyright © 2024 levigo holding gmbh. All rights reserved.