|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for Container classes whose Items can be indexed.
Nested Class Summary |
Nested classes inherited from class org.millstone.base.data.Container |
Container.Editor, Container.Hierarchical, Container.Indexed, Container.ItemSetChangeEvent, Container.ItemSetChangeListener, Container.ItemSetChangeNotifier, Container.Ordered, Container.PropertySetChangeEvent, Container.PropertySetChangeListener, Container.PropertySetChangeNotifier, Container.Viewer |
Field Summary |
Fields inherited from interface org.millstone.base.data.Container |
NULL_ITEM_ID |
Method Summary | |
java.lang.Object |
addItemAt(int index)
Add new item at given index. |
Item |
addItemAt(int index,
java.lang.Object newItemId)
Add new item at given index. |
java.lang.Object |
getIdByIndex(int index)
Get the ID of an Item by an index number. |
int |
indexOfId(java.lang.Object itemId)
Gets the index of the Item corresponding to itemId .
|
Methods inherited from interface org.millstone.base.data.Container.Ordered |
addItemAfter, addItemAfter, firstItemId, isFirstId, isLastId, lastItemId, nextItemId, prevItemId |
Methods inherited from interface org.millstone.base.data.Container |
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, removeItem, size |
Method Detail |
public int indexOfId(java.lang.Object itemId)
itemId
.
The following is true for the returned index: 0 <= index <
size().
itemId
- ID of an Item in the Container
public java.lang.Object getIdByIndex(int index)
index
- Index of the requested id in the Container
public java.lang.Object addItemAt(int index) throws java.lang.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.
java.lang.UnsupportedOperationException
public Item addItemAt(int index, java.lang.Object newItemId) throws java.lang.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.
java.lang.UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |