Uses of Interface
ca.odell.glazedlists.matchers.Matcher
-
Packages that use Matcher Package Description ca.odell.glazedlists ca.odell.glazedlists.matchers Implementations and classes useful for creating implementations ofMatcherEditor
/Matchers
for use withFilterLists
.ca.odell.glazedlists.swing -
-
Uses of Matcher in ca.odell.glazedlists
Methods in ca.odell.glazedlists that return Matcher Modifier and Type Method Description static <E> Matcher<E>
GlazedLists. beanPropertyMatcher(java.lang.Class<E> beanClass, java.lang.String propertyName, java.lang.Object value)
Deprecated.as of 3/3/2006 - this method has been replaced byMatchers.beanPropertyMatcher(java.lang.Class<E>, java.lang.String, java.lang.Object)
.Methods in ca.odell.glazedlists with parameters of type Matcher Modifier and Type Method Description void
ListSelection. addValidSelectionMatcher(Matcher<E> validSelectionMatcher)
Add a matcher which decides when source elements are valid for selection.static <E> ObservableElementList.Connector<E>
GlazedLists. beanConnector(java.lang.Class<E> beanClass, Matcher<java.beans.PropertyChangeEvent> eventMatcher)
Create a new Connector for theObservableElementList
that works with JavaBeans'PropertyChangeListener
.static <E> ObservableElementList.Connector<E>
GlazedLists. beanConnector(java.lang.Class<E> beanClass, java.lang.String addListener, java.lang.String removeListener, Matcher<java.beans.PropertyChangeEvent> eventMatcher)
Create a new Connector for theObservableElementList
that works with JavaBeans'PropertyChangeListener
.static <E> MatcherEditor<E>
GlazedLists. fixedMatcherEditor(Matcher<E> matcher)
Get aMatcherEditor
that is fixed on the specifiedMatcher
.void
ListSelection. removeValidSelectionMatcher(Matcher<E> validSelectionMatcher)
Remove a matcher which decides when source elements are valid for selection.void
FilterList. setMatcher(Matcher<? super E> matcher)
Set theMatcher
which specifies which elements shall be filtered.Constructors in ca.odell.glazedlists with parameters of type Matcher Constructor Description FilterList(EventList<E> source, Matcher<? super E> matcher)
Convenience constructor for creating aFilterList
and setting itsMatcher
. -
Uses of Matcher in ca.odell.glazedlists.matchers
Methods in ca.odell.glazedlists.matchers that return Matcher Modifier and Type Method Description static <E> Matcher<E>
Matchers. and(Matcher<? super E>... matchers)
Returns a Matcher which returns a match when all of the givenmatchers
report a match.static <E> Matcher<E>
Matchers. beanPropertyMatcher(java.lang.Class<E> beanClass, java.lang.String propertyName, java.lang.Object expectedValue)
Creates aMatcher
that uses Reflection to compare the expectedValue of the specified property of an object to theexpectedValue
.static <E> Matcher<E>
Matchers. falseMatcher()
Get aMatcher
that always returns false, therefore matching nothing..Matcher<E>
AbstractMatcherEditor. getMatcher()
Return the currentMatcher
specified by thisMatcherEditor
.Matcher<E>
MatcherEditor.Event. getMatcher()
Matcher<E>
MatcherEditor. getMatcher()
Return the currentMatcher
specified by thisMatcherEditor
.Matcher<E>
ThreadedMatcherEditor. getMatcher()
Returns the current Matcher specified by the sourceMatcherEditor
.static <E> Matcher<E>
Matchers. invert(Matcher<E> original)
static <E> Matcher<E>
Matchers. isNotNull()
Get aMatcher
that returns returns true iff it is given anull
object.static <E> Matcher<E>
Matchers. isNull()
Get aMatcher
that returns returns true iff it is given anon-null
object.static Matcher<java.lang.String>
Matchers. nonNullAndNonEmptyString()
static <E> Matcher<E>
Matchers. or(Matcher<? super E>... matchers)
Returns a Matcher which returns a match when any of the givenmatchers
reports a match.static Matcher<java.beans.PropertyChangeEvent>
Matchers. propertyEventNameMatcher(boolean matchPropertyNames, java.lang.String... propertyNames)
Create aMatcher
that uses the givenpropertyNames
to matchPropertyChangeEvent
s by their property name.static <D extends java.lang.Comparable,E>
Matcher<E>Matchers. rangeMatcher(D start, D end)
Creates aMatcher
that matchesComparable
objects for containment within the range between the givenstart
andend
.static <D extends java.lang.Comparable,E>
Matcher<E>Matchers. rangeMatcher(D start, D end, Filterator<D,E> filterator)
Creates aMatcher
that uses the givenfilterator
to extractComparable
objects from filtered objects and compares those Comparables against the range between the givenstart
andend
.static <E> Matcher<E>
Matchers. trueMatcher()
Get aMatcher
that always returns true, therefore matching everything.static <E> Matcher<E>
Matchers. types(java.lang.Class... classes)
Returns a Matcher which reports a match when the given object to match is not null and reports on of the givenclasses
as its type.Methods in ca.odell.glazedlists.matchers with parameters of type Matcher Modifier and Type Method Description static <E> Matcher<E>
Matchers. and(Matcher<? super E>... matchers)
Returns a Matcher which returns a match when all of the givenmatchers
report a match.static <E> boolean
Matchers. contains(java.util.Collection<E> collection, Matcher<? super E> matcher)
Returns true if the givencollection
contains an element that satisfies the givenmatcher
; false otherise.static <E> int
Matchers. count(java.util.Collection<E> collection, Matcher<? super E> matcher)
Iterate through the specified collection and count all elements that match the specified matcher.protected MatcherEditor.Event<E>
AbstractMatcherEditorListenerSupport. createChangedEvent(Matcher<E> matcher)
creates a changed event.protected MatcherEditor.Event<E>
AbstractMatcherEditorListenerSupport. createConstrainedEvent(Matcher<E> matcher)
creates a constrained event.protected MatcherEditor.Event<E>
AbstractMatcherEditorListenerSupport. createMatchAllEvent(Matcher<E> matcher)
creates a match all event.protected MatcherEditor.Event<E>
AbstractMatcherEditorListenerSupport. createMatchNoneEvent(Matcher<E> matcher)
creates a match none event.protected MatcherEditor.Event<E>
AbstractMatcherEditorListenerSupport. createRelaxedEvent(Matcher<E> matcher)
creates a relaxed event.static <E> boolean
Matchers. filter(java.util.Collection<E> collection, Matcher<? super E> matcher)
Iterate through the specified collection and remove all elements that don't match the specified matcher.protected void
AbstractMatcherEditor. fireChanged(Matcher<E> matcher)
Indicates that the filter has changed in an indeterminate way.protected void
AbstractMatcherEditor. fireConstrained(Matcher<E> matcher)
Indicates that the filter has changed to be more restrictive.protected void
AbstractMatcherEditor. fireRelaxed(Matcher<E> matcher)
Indicates that the filter has changed to be less restrictive.static <E> int
Matchers. indexOf(java.util.List<E> list, Matcher<? super E> matcher)
Returns the index of the first element from the givenlist
that satisfies thematcher
or -1 if no such element exists.static <E> Matcher<E>
Matchers. invert(Matcher<E> original)
static <E> Matcher<E>
Matchers. or(Matcher<? super E>... matchers)
Returns a Matcher which returns a match when any of the givenmatchers
reports a match.static <E> E[]
Matchers. select(E[] items, Matcher<? super E> matcher)
Return a new array containing only theitems
that satisfy thematcher
.static <E> java.util.Collection<? super E>
Matchers. select(java.util.Collection<E> collection, Matcher<? super E> matcher)
Add all elements from the givencollection
that satisfy thematcher
to a newArrayList
.static <E> java.util.Collection<? super E>
Matchers. select(java.util.Collection<E> collection, Matcher<? super E> matcher, java.util.Collection<? super E> results)
Add all elements from the givencollection
that satisfy thematcher
to the givenresults
Collection.Constructors in ca.odell.glazedlists.matchers with parameters of type Matcher Constructor Description Event(FilterList eventSource, int changeType, Matcher<E> matcher)
Event(MatcherEditor<E> matcherEditor, int changeType, Matcher<E> matcher)
-
Uses of Matcher in ca.odell.glazedlists.swing
Methods in ca.odell.glazedlists.swing with parameters of type Matcher Modifier and Type Method Description void
AdvancedListSelectionModel. addValidSelectionMatcher(Matcher<E> validSelectionMatcher)
Add a matcher which decides when source elements are valid for selection.void
DefaultEventSelectionModel. addValidSelectionMatcher(Matcher<E> validSelectionMatcher)
Add a matcher which decides when source elements are valid for selection.void
EventSelectionModel. addValidSelectionMatcher(Matcher<E> validSelectionMatcher)
Deprecated.Add a matcher which decides when source elements are valid for selection.void
AdvancedListSelectionModel. removeValidSelectionMatcher(Matcher<E> validSelectionMatcher)
Remove a matcher which decides when source elements are valid for selection.void
DefaultEventSelectionModel. removeValidSelectionMatcher(Matcher<E> validSelectionMatcher)
Remove a matcher which decides when source elements are valid for selection.void
EventSelectionModel. removeValidSelectionMatcher(Matcher<E> validSelectionMatcher)
Deprecated.Remove a matcher which decides when source elements are valid for selection.
-