info.joseluismartin.vaadin.data
Interface ItemIdStrategy

All Superinterfaces:
com.vaadin.data.Container.ItemSetChangeListener, Serializable
All Known Implementing Classes:
EntityItemIdStrategy, IndexedItemIdStrategy, PkItemIdStrategy

public interface ItemIdStrategy
extends com.vaadin.data.Container.ItemSetChangeListener

Strategy for generating the itemIds on ContainerDataSource

Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Method Summary
 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
 void itemLoaded(int index, com.vaadin.data.Item item)
           
 Object lastItemId()
           
 void setContainerDataSource(ContainerDataSource<?> containerDataSource)
          Set the containerDataSource
 
Methods inherited from interface com.vaadin.data.Container.ItemSetChangeListener
containerItemSetChange
 

Method Detail

firstItemId

Object firstItemId()
Returns:
the first itemId

lastItemId

Object lastItemId()
Returns:
the las itemId

indexOfId

int indexOfId(Object itemId)
Gets the index of an itemId

Parameters:
itemId - the itemId

getIdByIndex

Object getIdByIndex(int index)
Get an id by index

Parameters:
index - the index
Returns:
Id

getItemIds

Collection<?> getItemIds()
Gets a collection of all itemIds

Returns:
collection with all itemIds

setContainerDataSource

void setContainerDataSource(ContainerDataSource<?> containerDataSource)
Set the containerDataSource

Parameters:
containerDataSource -

itemLoaded

void itemLoaded(int index,
                com.vaadin.data.Item item)
Parameters:
index -
item -


Copyright © 2012 JDAL. All Rights Reserved.