|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Container.Ordered
Interface for Container classes whose Items can be traversed in order.
Nested Class Summary |
---|
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 |
Method Summary | |
---|---|
Object |
addItemAfter(Object previousItemId)
Adds new item after the given item. |
Item |
addItemAfter(Object previousItemId,
Object newItemId)
Adds new item after the given item. |
Object |
firstItemId()
Gets the ID of the first Item in the Container. |
boolean |
isFirstId(Object itemId)
Tests if the Item corresponding to the given Item ID is the first Item in the Container. |
boolean |
isLastId(Object itemId)
Tests if the Item corresponding to the given Item ID is the last Item in the Container. |
Object |
lastItemId()
Gets the ID of the last Item in the Container.. |
Object |
nextItemId(Object itemId)
Gets the ID of the Item following the Item that corresponds to itemId . |
Object |
prevItemId(Object itemId)
Gets the ID of the Item preceding the Item that corresponds to itemId . |
Methods inherited from interface com.itmill.toolkit.data.Container |
---|
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, removeItem, size |
Method Detail |
---|
Object nextItemId(Object itemId)
itemId
. If the given Item is the last or not found in
the Container, null
is returned.
itemId
- ID of an Item in the Container
null
Object prevItemId(Object itemId)
itemId
. If the given Item is the first or not found in
the Container, null
is returned.
itemId
- ID of an Item in the Container
null
Object firstItemId()
Object lastItemId()
boolean isFirstId(Object itemId)
itemId
- ID of an Item in the Container
true
if the Item is first in the Container,
false
if notboolean isLastId(Object itemId)
true
if the Item is last in the Container,
false
if notObject addItemAfter(Object previousItemId) throws UnsupportedOperationException
Adding an item after null item adds the item as first item of the ordered container.
previousItemId
- Id of the previous item in ordered container.
UnsupportedOperationException
Item addItemAfter(Object previousItemId, Object newItemId) throws UnsupportedOperationException
Adding an item after null item adds the item as first item of the ordered container.
previousItemId
- Id of the previous item in ordered container.newItemId
- Id of the new item to be added.
UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |