|
||||||||||
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 Item
s can be traversed in
order.
If the container is filtered or sorted, the traversal applies to the filtered and sorted view.
The addItemAfter()
methods should apply filters to the added
item after inserting it, possibly hiding it immediately. If the container
is being sorted, they may add items at the correct sorted position
instead of the given position. See also Container.SimpleFilterable
and
Container.Sortable
for more information.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.vaadin.data.Container |
---|
Container.Editor, Container.Filter, Container.Filterable, Container.Hierarchical, Container.Indexed, Container.ItemSetChangeEvent, Container.ItemSetChangeListener, Container.ItemSetChangeNotifier, Container.Ordered, Container.PropertySetChangeEvent, Container.PropertySetChangeListener, Container.PropertySetChangeNotifier, Container.SimpleFilterable, Container.Sortable, Container.Viewer |
Method Summary | |
---|---|
java.lang.Object |
addItemAfter(java.lang.Object previousItemId)
Adds a new item after the given item. |
Item |
addItemAfter(java.lang.Object previousItemId,
java.lang.Object newItemId)
Adds a new item after the given item. |
java.lang.Object |
firstItemId()
Gets the ID of the first Item in the Container. |
boolean |
isFirstId(java.lang.Object itemId)
Tests if the Item corresponding to the given Item ID is the first Item in the Container. |
boolean |
isLastId(java.lang.Object itemId)
Tests if the Item corresponding to the given Item ID is the last Item in the Container. |
java.lang.Object |
lastItemId()
Gets the ID of the last Item in the Container.. |
java.lang.Object |
nextItemId(java.lang.Object itemId)
Gets the ID of the Item following the Item that corresponds to itemId . |
java.lang.Object |
prevItemId(java.lang.Object itemId)
Gets the ID of the Item preceding the Item that corresponds to itemId . |
Methods inherited from interface com.vaadin.data.Container |
---|
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, removeItem, size |
Method Detail |
---|
java.lang.Object nextItemId(java.lang.Object itemId)
itemId
. If the given Item is the last or not found in
the Container, null
is returned.
itemId
- ID of a visible Item in the Container
null
java.lang.Object prevItemId(java.lang.Object itemId)
itemId
. If the given Item is the first or not found in
the Container, null
is returned.
itemId
- ID of a visible Item in the Container
null
java.lang.Object firstItemId()
java.lang.Object lastItemId()
boolean isFirstId(java.lang.Object itemId)
itemId
- ID of an Item in the Container
true
if the Item is first visible item in the
Container, false
if notboolean isLastId(java.lang.Object itemId)
true
if the Item is last visible item in the
Container, false
if notjava.lang.Object addItemAfter(java.lang.Object previousItemId) throws java.lang.UnsupportedOperationException
Adding an item after null item adds the item as first item of the ordered container.
previousItemId
- Id of the visible item in ordered container after which to
insert the new item.
java.lang.UnsupportedOperationException
- if the operation is not supported by the containerOrdered: adding items in filtered or sorted containers
Item addItemAfter(java.lang.Object previousItemId, java.lang.Object newItemId) throws java.lang.UnsupportedOperationException
Adding an item after null item adds the item as first item of the ordered container.
previousItemId
- Id of the visible item in ordered container after which to
insert the new item.newItemId
- Id of the new item to be added.
java.lang.UnsupportedOperationException
- if the operation is not supported by the containerOrdered: adding items in filtered or sorted containers
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |