|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Container.Indexed
Interface for Container classes whose Items can be indexed.
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 |
addItemAt(int index)
Adds new item at given index. |
Item |
addItemAt(int index,
Object newItemId)
Adds new item at given index. |
Object |
getIdByIndex(int index)
Gets the ID of an Item by an index number. |
int |
indexOfId(Object itemId)
Gets the index of the Item corresponding to the itemId. |
Methods inherited from interface com.itmill.toolkit.data.Container.Ordered |
---|
addItemAfter, addItemAfter, firstItemId, isFirstId, isLastId, lastItemId, nextItemId, prevItemId |
Methods inherited from interface com.itmill.toolkit.data.Container |
---|
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, removeItem, size |
Method Detail |
---|
int indexOfId(Object itemId)
true
for the returned index: 0 <= index < size().
itemId
- ID of an Item in the Container
Object getIdByIndex(int index)
index
- Index of the requested id in the Container
Object addItemAt(int index) throws UnsupportedOperationException
The indexes of the item currently in the given position and all the following items are incremented.
index
- Index to add the new item.
UnsupportedOperationException
Item addItemAt(int index, Object newItemId) throws UnsupportedOperationException
The indexes of the item currently in the given position and all the following items are incremented.
index
- Index to add the new item.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 |