com.levigo.util.base.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
 E first()
          A convenience method to get the first element from this group.
 List<E> getGroup()
          Get the List of all elements in this group.
 int getLimit()
          Get the maximum number of elements in this group to show.
 void setLimit(int limit)
          Set the maximum number of elements in this group to show.
 int size()
          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 SeparatorList to be held during invocation.


getGroup

List<E> getGroup()
Get the List of all elements in this group.

This method requires the read lock of the SeparatorList to 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.



Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.