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.Container
UnsupportedOperationException
public boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException
removeContainerProperty
in interface com.vaadin.data.Container
UnsupportedOperationException
public Collection<?> getContainerPropertyIds()
getContainerPropertyIds
in interface com.vaadin.data.Container
public Class<?> getType(Object propertyId)
getType
in interface com.vaadin.data.Container
public com.vaadin.data.Property getContainerProperty(Object itemId, Object propertyId)
getContainerProperty
in interface com.vaadin.data.Container
public boolean containsId(Object itemId)
containsId
in interface com.vaadin.data.Container
public com.vaadin.data.Item getItem(Object itemId)
getItem
in interface com.vaadin.data.Container
public int size()
size
in interface com.vaadin.data.Container
public Collection<?> getItemIds()
getItemIds
in interface com.vaadin.data.Container
public Object firstItemId()
firstItemId
in interface com.vaadin.data.Container.Ordered
public Object lastItemId()
lastItemId
in interface com.vaadin.data.Container.Ordered
public boolean isFirstId(Object itemId)
isFirstId
in interface com.vaadin.data.Container.Ordered
public boolean isLastId(Object itemId)
isLastId
in interface com.vaadin.data.Container.Ordered
public Object nextItemId(Object itemId)
nextItemId
in interface com.vaadin.data.Container.Ordered
public Object prevItemId(Object itemId)
prevItemId
in interface com.vaadin.data.Container.Ordered
public int indexOfId(Object itemId)
indexOfId
in interface com.vaadin.data.Container.Indexed
public Object getIdByIndex(int index)
getIdByIndex
in interface com.vaadin.data.Container.Indexed
public Collection<?> getSortableContainerPropertyIds()
getSortableContainerPropertyIds
in interface com.vaadin.data.Container.Sortable
public void sort(Object[] propertyIds, boolean[] ascending)
sort
in interface com.vaadin.data.Container.Sortable
public boolean removeAllItems() throws UnsupportedOperationException
removeAllItems
in interface com.vaadin.data.Container
UnsupportedOperationException
public 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.Container
UnsupportedOperationException
public Object addItemAfter(Object previousItemId) throws UnsupportedOperationException
addItemAfter
in interface com.vaadin.data.Container.Ordered
UnsupportedOperationException
public com.vaadin.data.Item addItemAfter(Object previousItemId, Object newItemId) throws UnsupportedOperationException
addItemAfter
in interface com.vaadin.data.Container.Ordered
UnsupportedOperationException
public Object addItemAt(int index) throws UnsupportedOperationException
addItemAt
in interface com.vaadin.data.Container.Indexed
UnsupportedOperationException
public com.vaadin.data.Item addItemAt(int index, Object newItemId) throws UnsupportedOperationException
addItemAt
in interface com.vaadin.data.Container.Indexed
UnsupportedOperationException
public boolean removeItem(Object itemId) throws UnsupportedOperationException
removeItem
in interface com.vaadin.data.Container
UnsupportedOperationException
public com.vaadin.data.Item addItem(Object itemId) throws UnsupportedOperationException
addItem
in interface com.vaadin.data.Container
UnsupportedOperationException
Copyright © 2016 Alfresco. All rights reserved.