Package ca.odell.glazedlists
Interface SeparatorList.Separator<E>
-
- Enclosing class:
- SeparatorList<E>
public static interface SeparatorList.Separator<E>A separator heading the elements of a group.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Efirst()A convenience method to get the first element from this group.java.util.List<E>getGroup()Get theListof all elements in this group.intgetLimit()Get the maximum number of elements in this group to show.voidsetLimit(int limit)Set the maximum number of elements in this group to show.intsize()A convenience method to get the number of elements in this group.
-
-
-
Method Detail
-
getLimit
int getLimit()
Get the maximum number of elements in this group to show.
-
setLimit
void setLimit(int limit)
Set the maximum number of elements in this group to show. This is useful to collapse a group (limit of 0), cap the elements of a group (limit of 5) or reverse those actions.This method requires the write lock of the
SeparatorListto be held during invocation.
-
getGroup
java.util.List<E> getGroup()
Get theListof all elements in this group.This method requires the read lock of the
SeparatorListto be held during invocation.
-
first
E first()
A convenience method to get the first element from this group. This is useful to render the separator's name.
-
size
int size()
A convenience method to get the number of elements in this group. This is useful to render the separator.
-
-