com.vaadin.data
Class ContainerHelpers

java.lang.Object
  extended by com.vaadin.data.ContainerHelpers
All Implemented Interfaces:
java.io.Serializable

public class ContainerHelpers
extends java.lang.Object
implements java.io.Serializable

Contains helper methods for containers that can be used to ease development of containers in Vaadin.

Since:
7.0
See Also:
Serialized Form

Constructor Summary
ContainerHelpers()
           
 
Method Summary
static java.util.List<?> getItemIdsUsingGetIdByIndex(int startIndex, int numberOfIds, Container.Indexed container)
          Get a range of item ids from the container using Container.Indexed.getIdByIndex(int).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerHelpers

public ContainerHelpers()
Method Detail

getItemIdsUsingGetIdByIndex

public static java.util.List<?> getItemIdsUsingGetIdByIndex(int startIndex,
                                                            int numberOfIds,
                                                            Container.Indexed container)
Get a range of item ids from the container using Container.Indexed.getIdByIndex(int). This is just a helper method to aid developers to quickly add the required functionality to a Container during development. This should not be used in a "finished product" unless fetching an id for an index is very inexpensive because a separate request will be performed for each index in the range.

Parameters:
startIndex - index of the first item id to get
numberOfIds - the number of consecutive items whose ids should be returned
container - the container from which the items should be fetched
Returns:
A list of item ids in the range specified


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.