com.itmill.toolkit.data
Interface Container.Sortable
- All Superinterfaces:
- Container, Container.Ordered
- All Known Implementing Classes:
- HierarchicalContainer, IndexedContainer, Table
- Enclosing interface:
- Container
public static interface Container.Sortable
- extends Container.Ordered
Interface for Container classes whose Items can be sorted.
Nested classes/interfaces inherited from interface com.itmill.toolkit.data.Container |
Container.Editor, Container.Filterable, Container.Hierarchical, Container.Indexed, Container.ItemSetChangeEvent, Container.ItemSetChangeListener, Container.ItemSetChangeNotifier, Container.Ordered, Container.PropertySetChangeEvent, Container.PropertySetChangeListener, Container.PropertySetChangeNotifier, Container.Sortable, Container.Viewer |
Methods inherited from interface com.itmill.toolkit.data.Container |
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, removeItem, size |
sort
void sort(Object[] propertyId,
boolean[] ascending)
- Sort method.
Sorts the container items.
- Parameters:
propertyId
- Array of container property IDs, which values are used to
sort the items in container as primary, secondary, ...
sorting criterion. All of the item IDs must be in the
collection returned by
getSortableContainerPropertyIds
ascending
- Array of sorting order flags corresponding to each
property ID used in sorting. If this array is shorter than
propertyId array, ascending order is assumed for items
where the order is not specified. Use true
to
sort in ascending order, false
to use
descending order.
getSortableContainerPropertyIds
Collection getSortableContainerPropertyIds()
- Gets the container property IDs, which can be used to sort the item.
- Returns:
- The sortable field ids.
Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.