|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.odell.glazedlists.matchers.AbstractMatcherEditorListenerSupport<E>
public abstract class AbstractMatcherEditorListenerSupport<E>
Basic building block for MatcherEditor implementations that handles
the details of dealing with registered MatcherEditor.Listeners. In
addition, it provides helper methods for creating matcher events.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface ca.odell.glazedlists.matchers.MatcherEditor |
|---|
MatcherEditor.Event<E>, MatcherEditor.Listener<E> |
| Constructor Summary | |
|---|---|
AbstractMatcherEditorListenerSupport()
|
|
| Method Summary | |
|---|---|
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. |
| 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 |
| Constructor Detail |
|---|
public AbstractMatcherEditorListenerSupport()
| Method Detail |
|---|
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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||