ca.odell.glazedlists
Class SeparatorList<E>
- EventListener, EventList<E>, List, ListEventListener<E>
public class SeparatorList<E>
A list that adds separator objects before each group of elements.
Warning: this class won't work very well with generics
because separators are mixed in, which will be a different class than the
other list elements.
Developer Preview this class is still under heavy development
and subject to API changes. It's also really slow at the moment and won't scale
to lists of size larger than a hundred or so efficiently.
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 |
SeparatorList
public SeparatorList(EventList source,
Comparator comparator,
int minimumSizeForSeparator,
int defaultLimit)
setComparator
public void setComparator(Comparator comparator)
Set the
Comparator
used to determine how elements are split
into groups.
Performance Note: sorting will take
O(N * Log N)
time.
Warning: This method is
thread ready but not thread safe. See
EventList
for an example
of thread safe code.
Glazed Lists, Copyright © 2003-2006 publicobject.com, O'Dell Engineering.
Documentation build by pbuilder at 2007-12-21 23:49