public abstract class AbstractMatcherEditor<E> extends AbstractMatcherEditorListenerSupport<E>
MatcherEditor
implementations that handles the details of
dealing with registered 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>
Constructor and Description |
---|
AbstractMatcherEditor() |
Modifier and Type | Method and Description |
---|---|
protected void |
fireChanged(Matcher<E> matcher)
Indicates that the filter has changed in an indeterminate way.
|
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. |
addMatcherEditorListener, createChangedEvent, createConstrainedEvent, createMatchAllEvent, createMatchNoneEvent, createRelaxedEvent, fireChangedMatcher, removeMatcherEditorListener
public final Matcher<E> getMatcher()
Matcher
specified by this MatcherEditor
.Matcher
.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()
true
if the current matcher will match everything.protected final boolean isCurrentlyMatchingNone()
true
if the current matcher will match nothing.Copyright © 2024 levigo holding gmbh. All rights reserved.