public abstract class AbstractMatcherEditor<E> extends java.lang.Object implements MatcherEditor<E>
MatcherEditor
implementations that
handles the details of dealing with registered MatcherEditor.Listener
s.
All MatcherEditor
implementations should extend this class for its
convenience methods.
Extending classes can fire events to registered listeners using the "fire" methods:
MatcherEditor.Event<E>, MatcherEditor.Listener<E>
Modifier and Type | Field and Description |
---|---|
protected Matcher<E> |
currentMatcher
the current Matcher in effect
|
Constructor and Description |
---|
AbstractMatcherEditor() |
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 void |
fireChanged(Matcher<E> matcher)
Indicates that the filter has changed in an indeterminate way.
|
protected void |
fireChangedMatcher(MatcherEditor.Event<E> event) |
protected void |
fireConstrained(Matcher<E> matcher)
Indicates that the filter has changed to be more restrictive.
|
protected void |
fireMatchAll()
Indicates that the filter matches all.
|
protected void |
fireMatchNone()
Indicates that the filter matches none.
|
protected void |
fireRelaxed(Matcher<E> matcher)
Indicates that the filter has changed to be less restrictive.
|
Matcher<E> |
getMatcher()
Return the current
Matcher specified by this MatcherEditor . |
protected boolean |
isCurrentlyMatchingAll()
Returns true if the current matcher will match everything.
|
protected boolean |
isCurrentlyMatchingNone()
Returns true if the current matcher will match nothing.
|
void |
removeMatcherEditorListener(MatcherEditor.Listener<E> listener)
Remove the listener so that it no longer receives notification when the
Matcher changes. |
public Matcher<E> getMatcher()
Matcher
specified by this MatcherEditor
.getMatcher
in interface MatcherEditor<E>
Matcher
.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 fireMatchAll()
protected final void fireChanged(Matcher<E> matcher)
protected final void fireConstrained(Matcher<E> matcher)
protected final void fireRelaxed(Matcher<E> matcher)
protected final void fireMatchNone()
protected final boolean isCurrentlyMatchingAll()
protected final boolean isCurrentlyMatchingNone()
protected final void fireChangedMatcher(MatcherEditor.Event<E> event)
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by mockbuild at 2012-03-02 14:06