|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Matcher | |
---|---|
ca.odell.glazedlists | |
ca.odell.glazedlists.calculation | |
ca.odell.glazedlists.matchers | Implementations and classes useful for creating implementations of
MatcherEditor /Matchers
for use with FilterLists . |
ca.odell.glazedlists.swing |
Uses of Matcher in ca.odell.glazedlists |
---|
Methods in ca.odell.glazedlists that return Matcher | ||
---|---|---|
static
|
GlazedLists.beanPropertyMatcher(Class<E> beanClass,
String propertyName,
Object value)
Deprecated. as of 3/3/2006 - this method has been replaced by Matchers.beanPropertyMatcher(java.lang.Class . Matchers is now
the permanent factory class which creates all basic Matcher
implementations. |
Methods in ca.odell.glazedlists with parameters of type Matcher | ||
---|---|---|
void |
ListSelection.addValidSelectionMatcher(Matcher<E> validSelectionMatcher)
Add a matcher which decides when source elements are valid for selection. |
|
static
|
GlazedLists.beanConnector(Class<E> beanClass,
Matcher<PropertyChangeEvent> eventMatcher)
Create a new Connector for the ObservableElementList that works with JavaBeans'
PropertyChangeListener . |
|
static
|
GlazedLists.beanConnector(Class<E> beanClass,
String addListener,
String removeListener,
Matcher<PropertyChangeEvent> eventMatcher)
Create a new Connector for the ObservableElementList that works with
JavaBeans' PropertyChangeListener . |
|
static
|
GlazedLists.fixedMatcherEditor(Matcher<E> matcher)
Get a MatcherEditor that is fixed on the specified Matcher . |
|
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 the Matcher which specifies which elements shall be filtered. |
Constructors in ca.odell.glazedlists with parameters of type Matcher | |
---|---|
FilterList(EventList<E> source,
Matcher<? super E> matcher)
Convenience constructor for creating a FilterList and setting its
Matcher . |
Uses of Matcher in ca.odell.glazedlists.calculation |
---|
Methods in ca.odell.glazedlists.calculation with parameters of type Matcher | ||
---|---|---|
static
|
Calculations.count(EventList<E> elements,
Matcher<E> matcher)
A Calculation that reports the number of elements that satisfy the given matcher as an Integer. |
Uses of Matcher in ca.odell.glazedlists.matchers |
---|
Methods in ca.odell.glazedlists.matchers that return Matcher | ||
---|---|---|
static
|
Matchers.and(Matcher<? super E>... matchers)
Returns a Matcher which returns a match when all of the given matchers report a match. |
|
static
|
Matchers.beanPropertyMatcher(Class<E> beanClass,
String propertyName,
Object expectedValue)
Creates a Matcher that uses Reflection to compare the expectedValue
of the specified property of an object to the expectedValue . |
|
static
|
Matchers.falseMatcher()
Get a Matcher that always returns false, therefore matching nothing.. |
|
Matcher<E> |
ThreadedMatcherEditor.getMatcher()
Returns the current Matcher specified by the source MatcherEditor . |
|
Matcher<E> |
MatcherEditor.getMatcher()
Return the current Matcher specified by this MatcherEditor . |
|
Matcher<E> |
MatcherEditor.Event.getMatcher()
|
|
Matcher<E> |
AbstractMatcherEditor.getMatcher()
Return the current Matcher specified by this MatcherEditor . |
|
static
|
Matchers.invert(Matcher<E> original)
Get a Matcher that returns the opposite of the specified Matcher . |
|
static
|
Matchers.isNotNull()
Get a Matcher that returns returns true iff it is
given a null object. |
|
static
|
Matchers.isNull()
Get a Matcher that returns returns true iff it is
given a non-null object. |
|
static Matcher<String> |
Matchers.nonNullAndNonEmptyString()
Get a Matcher that returns true iff it is given a
non-null and non-empty String. |
|
static
|
Matchers.or(Matcher<? super E>... matchers)
Returns a Matcher which returns a match when any of the given matchers reports a match. |
|
static Matcher<PropertyChangeEvent> |
Matchers.propertyEventNameMatcher(boolean matchPropertyNames,
String... propertyNames)
Create a Matcher that uses the given propertyNames to match
PropertyChangeEvent s by their property name. |
|
static
|
Matchers.rangeMatcher(D start,
D end)
Creates a Matcher that matches Comparable objects for
containment within the range between the given start
and end . |
|
static
|
Matchers.rangeMatcher(D start,
D end,
Filterator<D,E> filterator)
Creates a Matcher that uses the given filterator
to extract Comparable objects from filtered objects and compares
those Comparables against the range between the given start
and end . |
|
static
|
Matchers.trueMatcher()
Get a Matcher that always returns true, therefore matching everything. |
|
static
|
Matchers.types(Class... classes)
Returns a Matcher which reports a match when the given object to match is not null and reports on of the given classes as its type. |
Methods in ca.odell.glazedlists.matchers with parameters of type Matcher | ||
---|---|---|
static
|
Matchers.and(Matcher<? super E>... matchers)
Returns a Matcher which returns a match when all of the given matchers report a match. |
|
static
|
Matchers.contains(Collection<E> collection,
Matcher<? super E> matcher)
Returns true if the given collection contains an
element that satisfies the given matcher ; false
otherise. |
|
static
|
Matchers.count(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
|
Matchers.filter(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
|
Matchers.indexOf(List<E> list,
Matcher<? super E> matcher)
Returns the index of the first element from the given list
that satisfies the matcher or -1 if no such
element exists. |
|
static
|
Matchers.invert(Matcher<E> original)
Get a Matcher that returns the opposite of the specified Matcher . |
|
static
|
Matchers.or(Matcher<? super E>... matchers)
Returns a Matcher which returns a match when any of the given matchers reports a match. |
|
static
|
Matchers.select(Collection<E> collection,
Matcher<? super E> matcher)
Add all elements from the given collection that satisfy the
matcher to a new ArrayList . |
|
static
|
Matchers.select(Collection<E> collection,
Matcher<? super E> matcher,
Collection<? super E> results)
Add all elements from the given collection that satisfy the
matcher to the given results Collection. |
|
static
|
Matchers.select(E[] items,
Matcher<? super E> matcher)
Return a new array containing only the items that satisfy
the matcher . |
Constructors in ca.odell.glazedlists.matchers with parameters of type Matcher | |
---|---|
MatcherEditor.Event(FilterList eventSource,
int changeType,
Matcher<E> matcher)
|
|
MatcherEditor.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 | |
---|---|
void |
EventSelectionModel.addValidSelectionMatcher(Matcher<E> validSelectionMatcher)
Deprecated. 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 |
AdvancedListSelectionModel.addValidSelectionMatcher(Matcher<E> validSelectionMatcher)
Add 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. |
void |
DefaultEventSelectionModel.removeValidSelectionMatcher(Matcher<E> validSelectionMatcher)
Remove 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. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |