Interface for Container classes whose Items can be traversed in order.
Inheritance Path. com.itmill.toolkit.data.Container.Ordered
Parameters
previousItemId
Id of the previous item in ordered container.
Returns item id the the created new item or null if the operation fails.
Add new item after the given item.
Adding an item after null item adds the item as first item of the ordered container.
Parameters
previousItemId
Id of the previous item in ordered container.
newItemId
Id of the new item to be added.
Returns new item or null if the operation fails.
Add new item after the given item.
Adding an item after null item adds the item as first item of the ordered container.
Parameters
ID of the first Item in the Container
Gets the ID of the first Item in the Container.
Parameters
itemId
ID of an Item in the Container
true
if the Item is first in the Container,
false
if not
Tests if the Item corresponding to the given Item ID is the first Item in the Container.
Parameters
true
if the Item is last in the Container,
false
if not
Tests if the Item corresponding to the given Item ID is the last Item in the Container.
Parameters
ID of the last Item in the Container
Gets the ID of the last Item in the Container..
Parameters
itemId
ID of an Item in the Container
ID of the next Item or
null
Gets the ID of the Item following the Item that corresponds to
itemId
. If the given Item is the last or not found in
the Container,
null
is returned.