Package ca.odell.glazedlists.matchers
Class MatcherEditor.Event<E>
- java.lang.Object
-
- java.util.EventObject
-
- ca.odell.glazedlists.matchers.MatcherEditor.Event<E>
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing interface:
- MatcherEditor<E>
public static class MatcherEditor.Event<E> extends java.util.EventObjectA MatcherEditor event models a change in theMatcherEditorthat creates a newMatcher.The event gives access to:
- the
MatcherEditorwhich was the source of the change - the new
Matcherwhich was produced from the MatcherEditor - a type value which indicates whether the new Matcher may be considered a relaxing, constraining, or changing of the prior Matcher produced from the MatcherEditor. Special types also exist for the edge cases where the new Matcher is guaranteed to match everything or nothing
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intCHANGEDIndicates the associated Matcher is a complete change from the previous Matcher.static intCONSTRAINEDIndicates the associated Matcher is a constrained version of the previous Matcher, implying it can be expected to match at most the same values matched by the previous Matcher, and possibly fewer.static intMATCH_ALLIndicates the associated Matcher will match anything.static intMATCH_NONEIndicates the associated Matcher will match nothing.static intRELAXEDIndicates the associated Matcher is a relaxed version of the previous Matcher, implying it can be expected to match at least the same values matched by the previous Matcher, and possibly more.
-
Constructor Summary
Constructors Constructor Description Event(FilterList eventSource, int changeType, Matcher<E> matcher)Event(MatcherEditor<E> matcherEditor, int changeType, Matcher<E> matcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Matcher<E>getMatcher()MatcherEditor<E>getMatcherEditor()Get theMatcherEditorthat originated this event, or null if this event originated directly from aFilterListin a call toFilterList.setMatcher(Matcher).intgetType()
-
-
-
Field Detail
-
MATCH_ALL
public static final int MATCH_ALL
Indicates the associated Matcher will match anything.- See Also:
- Constant Field Values
-
MATCH_NONE
public static final int MATCH_NONE
Indicates the associated Matcher will match nothing.- See Also:
- Constant Field Values
-
CONSTRAINED
public static final int CONSTRAINED
Indicates the associated Matcher is a constrained version of the previous Matcher, implying it can be expected to match at most the same values matched by the previous Matcher, and possibly fewer.- See Also:
- Constant Field Values
-
RELAXED
public static final int RELAXED
Indicates the associated Matcher is a relaxed version of the previous Matcher, implying it can be expected to match at least the same values matched by the previous Matcher, and possibly more.- See Also:
- Constant Field Values
-
CHANGED
public static final int CHANGED
Indicates the associated Matcher is a complete change from the previous Matcher. No guarantees can be made for any values which were matched or unmatched by the previous Matcher.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Event
public Event(MatcherEditor<E> matcherEditor, int changeType, Matcher<E> matcher)
-
Event
public Event(FilterList eventSource, int changeType, Matcher<E> matcher)
-
-
Method Detail
-
getMatcherEditor
public MatcherEditor<E> getMatcherEditor()
Get theMatcherEditorthat originated this event, or null if this event originated directly from aFilterListin a call toFilterList.setMatcher(Matcher).
-
getType
public int getType()
-
-