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/Matchersfor 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 voidListSelection. 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 theObservableElementListthat 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 theObservableElementListthat works with JavaBeans'PropertyChangeListener.static <E> MatcherEditor<E>GlazedLists. fixedMatcherEditor(Matcher<E> matcher)Get aMatcherEditorthat is fixed on the specifiedMatcher.voidListSelection. removeValidSelectionMatcher(Matcher<E> validSelectionMatcher)Remove a matcher which decides when source elements are valid for selection.voidFilterList. setMatcher(Matcher<? super E> matcher)Set theMatcherwhich 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 aFilterListand 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 givenmatchersreport a match.static <E> Matcher<E>Matchers. beanPropertyMatcher(java.lang.Class<E> beanClass, java.lang.String propertyName, java.lang.Object expectedValue)Creates aMatcherthat uses Reflection to compare the expectedValue of the specified property of an object to theexpectedValue.static <E> Matcher<E>Matchers. falseMatcher()Get aMatcherthat always returns false, therefore matching nothing..Matcher<E>AbstractMatcherEditor. getMatcher()Return the currentMatcherspecified by thisMatcherEditor.Matcher<E>MatcherEditor.Event. getMatcher()Matcher<E>MatcherEditor. getMatcher()Return the currentMatcherspecified 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 aMatcherthat returns returns true iff it is given anullobject.static <E> Matcher<E>Matchers. isNull()Get aMatcherthat returns returns true iff it is given anon-nullobject.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 givenmatchersreports a match.static Matcher<java.beans.PropertyChangeEvent>Matchers. propertyEventNameMatcher(boolean matchPropertyNames, java.lang.String... propertyNames)Create aMatcherthat uses the givenpropertyNamesto matchPropertyChangeEvents by their property name.static <D extends java.lang.Comparable,E>
Matcher<E>Matchers. rangeMatcher(D start, D end)Creates aMatcherthat matchesComparableobjects for containment within the range between the givenstartandend.static <D extends java.lang.Comparable,E>
Matcher<E>Matchers. rangeMatcher(D start, D end, Filterator<D,E> filterator)Creates aMatcherthat uses the givenfilteratorto extractComparableobjects from filtered objects and compares those Comparables against the range between the givenstartandend.static <E> Matcher<E>Matchers. trueMatcher()Get aMatcherthat 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 givenclassesas 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 givenmatchersreport a match.static <E> booleanMatchers. contains(java.util.Collection<E> collection, Matcher<? super E> matcher)Returns true if the givencollectioncontains an element that satisfies the givenmatcher; false otherise.static <E> intMatchers. 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> booleanMatchers. 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 voidAbstractMatcherEditor. fireChanged(Matcher<E> matcher)Indicates that the filter has changed in an indeterminate way.protected voidAbstractMatcherEditor. fireConstrained(Matcher<E> matcher)Indicates that the filter has changed to be more restrictive.protected voidAbstractMatcherEditor. fireRelaxed(Matcher<E> matcher)Indicates that the filter has changed to be less restrictive.static <E> intMatchers. indexOf(java.util.List<E> list, Matcher<? super E> matcher)Returns the index of the first element from the givenlistthat satisfies thematcheror -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 givenmatchersreports a match.static <E> E[]Matchers. select(E[] items, Matcher<? super E> matcher)Return a new array containing only theitemsthat 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 givencollectionthat satisfy thematcherto 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 givencollectionthat satisfy thematcherto the givenresultsCollection.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 voidAdvancedListSelectionModel. addValidSelectionMatcher(Matcher<E> validSelectionMatcher)Add a matcher which decides when source elements are valid for selection.voidDefaultEventSelectionModel. addValidSelectionMatcher(Matcher<E> validSelectionMatcher)Add a matcher which decides when source elements are valid for selection.voidEventSelectionModel. addValidSelectionMatcher(Matcher<E> validSelectionMatcher)Deprecated.Add a matcher which decides when source elements are valid for selection.voidAdvancedListSelectionModel. removeValidSelectionMatcher(Matcher<E> validSelectionMatcher)Remove a matcher which decides when source elements are valid for selection.voidDefaultEventSelectionModel. removeValidSelectionMatcher(Matcher<E> validSelectionMatcher)Remove a matcher which decides when source elements are valid for selection.voidEventSelectionModel. removeValidSelectionMatcher(Matcher<E> validSelectionMatcher)Deprecated.Remove a matcher which decides when source elements are valid for selection.
-