|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.joseluismartin.vaadin.data.IndexedItemIdStrategy
public class IndexedItemIdStrategy
Indexed ItemIdStragy use the index on the item in container as itemId. The itemId of a item will change when filtering, sorting, adding or removing items. If this is not a trouble, this is the faster ItemIdStrategy to use.
Constructor Summary | |
---|---|
IndexedItemIdStrategy()
|
Method Summary | |
---|---|
void |
containerItemSetChange(com.vaadin.data.Container.ItemSetChangeEvent event)
|
Object |
firstItemId()
|
Object |
getIdByIndex(int index)
Get an id by index |
Collection<?> |
getItemIds()
Gets a collection of all itemIds |
int |
indexOfId(Object itemId)
Gets the index of an itemId |
boolean |
isFirstId(Object itemId)
Test for first itemId |
boolean |
isLastId(Object itemId)
Test for last itemId |
void |
itemLoaded(int index,
com.vaadin.data.Item item)
|
Object |
lastItemId()
|
Object |
nextItemId(Object itemId)
Return the next itemId |
Object |
prevItemId(Object itemId)
Gets the previous itemId |
void |
setContainerDataSource(ContainerDataSource<?> containerDataSource)
Set the containerDataSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexedItemIdStrategy()
Method Detail |
---|
public Object firstItemId()
firstItemId
in interface ItemIdStrategy
public boolean isFirstId(Object itemId)
itemId
- the itemId
public boolean isLastId(Object itemId)
itemId
- the itemId
public Object lastItemId()
lastItemId
in interface ItemIdStrategy
public Object nextItemId(Object itemId)
itemId
- the itemId
public Object prevItemId(Object itemId)
itemId
- public Collection<?> getItemIds()
getItemIds
in interface ItemIdStrategy
public int indexOfId(Object itemId)
indexOfId
in interface ItemIdStrategy
itemId
- the itemIdpublic Object getIdByIndex(int index)
getIdByIndex
in interface ItemIdStrategy
index
- the index
public void setContainerDataSource(ContainerDataSource<?> containerDataSource)
setContainerDataSource
in interface ItemIdStrategy
public void itemLoaded(int index, com.vaadin.data.Item item)
itemLoaded
in interface ItemIdStrategy
public void containerItemSetChange(com.vaadin.data.Container.ItemSetChangeEvent event)
containerItemSetChange
in interface com.vaadin.data.Container.ItemSetChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |