ca.odell.glazedlists
Class FilterList<E>
- EventListener, EventList<E>, List, ListEventListener<E>
public final class FilterList<E>
An
EventList
that shows a subset of the elements of a source
EventList
. This subset is composed of all elements of the source
EventList
that match the filter.
The filter can be static or dynamic. Changing the behaviour of the filter
will change which elements of the source list are included.
Warning: This class
breaks the contract required by
java.util.List
. See
EventList
for an example.
Warning: This class is
thread ready but not thread safe. See
EventList
for an example
of thread safe code.
EventList Overview |
Writable: | yes |
Concurrency: | thread ready, not thread safe |
Performance: | reads: O(log N), writes O(log N), filter changes O(N) |
Memory: | 0 to 26 bytes per element |
Unit Tests: | N/A |
Issues: |
1
2
7
46
187
254
312
|
add , addAll , clear , dispose , get , getSourceIndex , isWritable , listChanged , remove , removeAll , retainAll , set , size |
T[] toArray , add , add , addAll , addAll , addListEventListener , clear , contains , containsAll , equals , get , getPublisher , getReadWriteLock , hashCode , indexOf , isEmpty , iterator , lastIndexOf , listIterator , listIterator , remove , remove , removeAll , removeListEventListener , retainAll , set , size , subList , toArray , toString |
FilterList
public FilterList(EventList source)
FilterList
public FilterList(EventList source,
E> matcher)
FilterList
public FilterList(EventList source,
E> matcherEditor)
setMatcher
public void setMatcher(E> matcher)
Set the
Matcher
which specifies which elements shall be filtered.
This will remove the current
Matcher
or
MatcherEditor
and refilter the entire list.
setMatcherEditor
public void setMatcherEditor(E> editor)
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by pbuilder at 2009-07-14 22:05