Package | Description |
---|---|
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 |
Modifier and Type | Method and 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 by
Matchers.beanPropertyMatcher(java.lang.Class<E>, java.lang.String, java.lang.Object) . Matchers is now
the permanent factory class which creates all basic Matcher
implementations. |
Modifier and Type | Method and 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 the
ObservableElementList 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 the
ObservableElementList that works with
JavaBeans' PropertyChangeListener . |
static <E> MatcherEditor<E> |
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. |
Constructor and Description |
---|
FilterList(EventList<E> source,
Matcher<? super E> matcher)
Convenience constructor for creating a
FilterList and setting its
Matcher . |
Modifier and Type | Method and Description |
---|---|
static <E> Calculation<java.lang.Integer> |
Calculations.count(EventList<E> elements,
Matcher<E> matcher)
A Calculation that reports the number of
elements that satisfy the given matcher as an Integer. |
Modifier and Type | Method and Description |
---|---|
static <E> Matcher<E> |
Matchers.and(Matcher<? super E>... matchers)
Returns a Matcher which returns a match when all of the
given
matchers report a match. |
static <E> Matcher<E> |
Matchers.beanPropertyMatcher(java.lang.Class<E> beanClass,
java.lang.String propertyName,
java.lang.Object expectedValue)
Creates a
Matcher that uses Reflection to compare the expectedValue
of the specified property of an object to the expectedValue . |
static <E> Matcher<E> |
Matchers.falseMatcher()
Get a
Matcher that always returns false, therefore matching nothing.. |
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 . |
Matcher<E> |
ThreadedMatcherEditor.getMatcher()
Returns the current Matcher specified by the source
MatcherEditor . |
static <E> Matcher<E> |
Matchers.invert(Matcher<E> original)
|
static <E> Matcher<E> |
Matchers.isNotNull()
Get a
Matcher that returns returns true iff it is
given a null object. |
static <E> Matcher<E> |
Matchers.isNull()
Get a
Matcher that returns returns true iff it is
given a non-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
given
matchers reports a match. |
static Matcher<java.beans.PropertyChangeEvent> |
Matchers.propertyEventNameMatcher(boolean matchPropertyNames,
java.lang.String... propertyNames)
Create a
Matcher that uses the given propertyNames to match
PropertyChangeEvent s by their property name. |
static <D extends java.lang.Comparable,E> |
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 <D extends java.lang.Comparable,E> |
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 <E> Matcher<E> |
Matchers.trueMatcher()
Get a
Matcher 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 given
classes as its type. |
Modifier and Type | Method and Description |
---|---|
static <E> Matcher<E> |
Matchers.and(Matcher<? super E>... matchers)
Returns a Matcher which returns a match when all of the
given
matchers report a match. |
static <E> boolean |
Matchers.contains(java.util.Collection<E> collection,
Matcher<? super E> matcher)
Returns true if the given
collection contains an
element that satisfies the given matcher ; 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 given
list
that satisfies the matcher 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
given
matchers reports a match. |
static <E> java.util.Collection<? super E> |
Matchers.select(java.util.Collection<E> collection,
Matcher<? super E> matcher)
Add all elements from the given
collection that satisfy the
matcher to a new ArrayList . |
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 given
collection that satisfy the
matcher to the given results Collection. |
static <E> E[] |
Matchers.select(E[] items,
Matcher<? super E> matcher)
Return a new array containing only the
items that satisfy
the matcher . |
Constructor and Description |
---|
MatcherEditor.Event(FilterList eventSource,
int changeType,
Matcher<E> matcher) |
MatcherEditor.Event(MatcherEditor<E> matcherEditor,
int changeType,
Matcher<E> matcher) |
Modifier and Type | Method and Description |
---|---|
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.
|
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by mockbuild at 2013-10-14 14:59