Interface Container.Sortable

Interface for Container classes whose Items can be sorted.

Synopsis

Inheritance Path.  com.itmill.toolkit.data.Container.Sortable

getSortableContainerPropertyIds()

Parameters

return

The sortable field ids.

Get the container property IDs, which can be used to sort the item.

sort(Object[], boolean[])

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.

Sort method. Sort the container items.