|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.util.base.glazedlists.matchers.AbstractMatcherEditor<E>
public abstract class AbstractMatcherEditor<E>
Basic building block for 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:
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.levigo.util.base.glazedlists.matchers.MatcherEditor |
---|
MatcherEditor.Event<E>, MatcherEditor.Listener<E> |
Field Summary | |
---|---|
protected Matcher<E> |
currentMatcher
the current Matcher in effect |
Constructor Summary | |
---|---|
AbstractMatcherEditor()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Matcher<E> currentMatcher
Constructor Detail |
---|
public AbstractMatcherEditor()
Method Detail |
---|
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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |