ca.odell.glazedlists.matchers

Class MatcherEditor.Event<E>

Enclosing Class:
MatcherEditor<E>

public class MatcherEditor.Event<E>
extends EventObject

A MatcherEditor event models a change in the MatcherEditor that creates a new Matcher.

The event gives access to:

The type constants are found in this event class:

Field Summary

static int
CHANGED
Indicates the associated Matcher is a complete change from the previous Matcher.
static 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.
static int
MATCH_ALL
Indicates the associated Matcher will match anything.
static int
MATCH_NONE
Indicates the associated Matcher will match nothing.
static 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.

Constructor Summary

Event(MatcherEditor matcherEditor, int changeType, Matcher matcher)
Event(FilterList<E> eventSource, int changeType, Matcher matcher)

Method Summary

Matcher
getMatcher()
MatcherEditor
getMatcherEditor()
Get the MatcherEditor that originated this event, or null if this event originated directly from a FilterList in a call to FilterList.setMatcher(Matcher).
int
getType()

Field Details

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.
Field Value:
4

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.
Field Value:
2

MATCH_ALL

public static final int MATCH_ALL
Indicates the associated Matcher will match anything.
Field Value:
0

MATCH_NONE

public static final int MATCH_NONE
Indicates the associated Matcher will match nothing.
Field Value:
1

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.
Field Value:
3

Constructor Details

Event

public Event(MatcherEditor matcherEditor,
             int changeType,
             Matcher matcher)

Event

public Event(FilterList<E> eventSource,
             int changeType,
             Matcher matcher)

Method Details

getMatcher

public Matcher getMatcher()

getMatcherEditor

public MatcherEditor getMatcherEditor()
Get the MatcherEditor that originated this event, or null if this event originated directly from a FilterList in a call to FilterList.setMatcher(Matcher).

getType

public int getType()

Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by pbuilder at 2009-07-14 22:05