ca.odell.glazedlists
Class CompositeList<E>
java.lang.Object
ca.odell.glazedlists.AbstractEventList<E>
ca.odell.glazedlists.TransformedList<S,E>
ca.odell.glazedlists.CollectionList<EventList<E>,E>
ca.odell.glazedlists.CompositeList<E>
- All Implemented Interfaces:
- ListEventListener<EventList<E>>, EventList<E>, Iterable<E>, Collection<E>, EventListener, List<E>
public class CompositeList<E>
- extends CollectionList<EventList<E>,E>
An EventList composed of multiple source EventLists. This list
shows the contents of its source lists.
Note that all contained EventLists must use the same ReadWriteLock
if this EventList is to be used my multiple threads concurrently. To
construct an EventList that shares the ReadWriteLock with this
CompositeList, use createMemberList() or
new BasicEventList(CompositeList.getReadWriteLock())
- Author:
- Jesse Wilson
| Methods inherited from class ca.odell.glazedlists.AbstractEventList |
add, addAll, addListEventListener, contains, containsAll, equals, getPublisher, getReadWriteLock, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeListEventListener, subList, toArray, toArray, toString |
CompositeList
public CompositeList()
CompositeList
public CompositeList(ReadWriteLock lock)
- Create a
CompositeList that uses the given lock.
Note that this lock will also be used when building new member lists.
This can be a convenient constructor to use when the member lists
are prebuilt ahead of time with a common ReadWriteLock and it
is desirable to compose their union with a CompositeList.
- Parameters:
lock - the ReadWriteLock to use within the CompositeList
addMemberList
public void addMemberList(EventList<E> list)
- Adds the specified
EventList as a source to this CompositeList.
createMemberList
public EventList<E> createMemberList()
- Creates a new
EventList that shares its ReadWriteLock with
this CompositeList. This is necessary when this CompositeList
will be used by multiple threads.
Note that the created EventList must be explicitly added as a member
to this CompositeList using addMemberList(EventList).
removeMemberList
public void removeMemberList(EventList<E> list)
- Removes the specified
EventList as a source EventList
to this CompositeList.
Glazed Lists, Copyright © 2003-2006 publicobject.com, O'Dell Engineering.
Documentation build by jessewilson at 2006-05-23 22:33