public class ContainerHelpers extends Object implements Serializable
| Constructor and Description |
|---|
ContainerHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static List<?> |
getItemIdsUsingGetIdByIndex(int startIndex,
int numberOfIds,
Container.Indexed container)
Get a range of item ids from the container using
Container.Indexed.getIdByIndex(int). |
public static List<?> getItemIdsUsingGetIdByIndex(int startIndex, int numberOfIds, Container.Indexed container)
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.startIndex - index of the first item id to getnumberOfIds - the number of consecutive items whose ids should be returnedcontainer - the container from which the items should be fetchedCopyright © 2017 Vaadin Ltd. All rights reserved.