public class LazyLoadingContainer extends Object implements com.vaadin.data.Container.Indexed, com.vaadin.data.Container.Sortable
com.vaadin.data.Container.Editor, com.vaadin.data.Container.Filter, com.vaadin.data.Container.Filterable, com.vaadin.data.Container.Hierarchical, com.vaadin.data.Container.Indexed, com.vaadin.data.Container.ItemSetChangeEvent, com.vaadin.data.Container.ItemSetChangeListener, com.vaadin.data.Container.ItemSetChangeNotifier, com.vaadin.data.Container.Ordered, com.vaadin.data.Container.PropertySetChangeEvent, com.vaadin.data.Container.PropertySetChangeListener, com.vaadin.data.Container.PropertySetChangeNotifier, com.vaadin.data.Container.SimpleFilterable, com.vaadin.data.Container.Sortable, com.vaadin.data.Container.Viewer| Modifier and Type | Field and Description |
|---|---|
protected int |
batchSize |
protected Map<Object,Object> |
containerPropertyDefaultValues |
protected List<Object> |
containerPropertyIds |
protected Map<Object,Class<?>> |
containerPropertyTypes |
protected Map<Integer,com.vaadin.data.Item> |
itemCache |
protected LazyLoadingQuery |
lazyLoadingQuery |
protected int |
size |
| Constructor and Description |
|---|
LazyLoadingContainer(LazyLoadingQuery lazyLoadingQuery) |
LazyLoadingContainer(LazyLoadingQuery lazyLoadingQuery,
int batchSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addContainerProperty(Object propertyId,
Class<?> type,
Object defaultValue) |
Object |
addItem() |
com.vaadin.data.Item |
addItem(Object itemId) |
Object |
addItemAfter(Object previousItemId) |
com.vaadin.data.Item |
addItemAfter(Object previousItemId,
Object newItemId) |
Object |
addItemAt(int index) |
com.vaadin.data.Item |
addItemAt(int index,
Object newItemId) |
boolean |
containsId(Object itemId) |
Object |
firstItemId() |
com.vaadin.data.Property |
getContainerProperty(Object itemId,
Object propertyId) |
Collection<?> |
getContainerPropertyIds() |
Object |
getDefaultValue(Object propertyId) |
Object |
getIdByIndex(int index) |
int |
getIndexForObjectId(com.vaadin.data.Item searched,
int low,
int high) |
int |
getIndexForObjectId(String id) |
com.vaadin.data.Item |
getItem(Object itemId) |
Collection<?> |
getItemIds() |
Collection<?> |
getSortableContainerPropertyIds() |
Class<?> |
getType(Object propertyId) |
int |
indexOfId(Object itemId) |
boolean |
isFirstId(Object itemId) |
boolean |
isLastId(Object itemId) |
Object |
lastItemId() |
Object |
nextItemId(Object itemId) |
Object |
prevItemId(Object itemId) |
boolean |
removeAllItems() |
boolean |
removeContainerProperty(Object propertyId) |
boolean |
removeItem(Object itemId) |
int |
size() |
void |
sort(Object[] propertyIds,
boolean[] ascending) |
protected LazyLoadingQuery lazyLoadingQuery
protected int batchSize
protected int size
public LazyLoadingContainer(LazyLoadingQuery lazyLoadingQuery, int batchSize)
public LazyLoadingContainer(LazyLoadingQuery lazyLoadingQuery)
public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException
addContainerProperty in interface com.vaadin.data.ContainerUnsupportedOperationExceptionpublic boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException
removeContainerProperty in interface com.vaadin.data.ContainerUnsupportedOperationExceptionpublic Collection<?> getContainerPropertyIds()
getContainerPropertyIds in interface com.vaadin.data.Containerpublic Class<?> getType(Object propertyId)
getType in interface com.vaadin.data.Containerpublic com.vaadin.data.Property getContainerProperty(Object itemId, Object propertyId)
getContainerProperty in interface com.vaadin.data.Containerpublic boolean containsId(Object itemId)
containsId in interface com.vaadin.data.Containerpublic com.vaadin.data.Item getItem(Object itemId)
getItem in interface com.vaadin.data.Containerpublic int size()
size in interface com.vaadin.data.Containerpublic Collection<?> getItemIds()
getItemIds in interface com.vaadin.data.Containerpublic Object firstItemId()
firstItemId in interface com.vaadin.data.Container.Orderedpublic Object lastItemId()
lastItemId in interface com.vaadin.data.Container.Orderedpublic boolean isFirstId(Object itemId)
isFirstId in interface com.vaadin.data.Container.Orderedpublic boolean isLastId(Object itemId)
isLastId in interface com.vaadin.data.Container.Orderedpublic Object nextItemId(Object itemId)
nextItemId in interface com.vaadin.data.Container.Orderedpublic Object prevItemId(Object itemId)
prevItemId in interface com.vaadin.data.Container.Orderedpublic int indexOfId(Object itemId)
indexOfId in interface com.vaadin.data.Container.Indexedpublic Object getIdByIndex(int index)
getIdByIndex in interface com.vaadin.data.Container.Indexedpublic Collection<?> getSortableContainerPropertyIds()
getSortableContainerPropertyIds in interface com.vaadin.data.Container.Sortablepublic void sort(Object[] propertyIds, boolean[] ascending)
sort in interface com.vaadin.data.Container.Sortablepublic boolean removeAllItems()
throws UnsupportedOperationException
removeAllItems in interface com.vaadin.data.ContainerUnsupportedOperationExceptionpublic int getIndexForObjectId(String id)
public int getIndexForObjectId(com.vaadin.data.Item searched,
int low,
int high)
public Object addItem() throws UnsupportedOperationException
addItem in interface com.vaadin.data.ContainerUnsupportedOperationExceptionpublic Object addItemAfter(Object previousItemId) throws UnsupportedOperationException
addItemAfter in interface com.vaadin.data.Container.OrderedUnsupportedOperationExceptionpublic com.vaadin.data.Item addItemAfter(Object previousItemId, Object newItemId) throws UnsupportedOperationException
addItemAfter in interface com.vaadin.data.Container.OrderedUnsupportedOperationExceptionpublic Object addItemAt(int index) throws UnsupportedOperationException
addItemAt in interface com.vaadin.data.Container.IndexedUnsupportedOperationExceptionpublic com.vaadin.data.Item addItemAt(int index,
Object newItemId)
throws UnsupportedOperationException
addItemAt in interface com.vaadin.data.Container.IndexedUnsupportedOperationExceptionpublic boolean removeItem(Object itemId) throws UnsupportedOperationException
removeItem in interface com.vaadin.data.ContainerUnsupportedOperationExceptionpublic com.vaadin.data.Item addItem(Object itemId) throws UnsupportedOperationException
addItem in interface com.vaadin.data.ContainerUnsupportedOperationExceptionCopyright © 2016 Alfresco. All rights reserved.