DTO
- public class LazyDtoContainer<DTO> extends Object
PagingCriteria
and return DtoList
.Modifier and Type | Class and Description |
---|---|
static interface |
LazyDtoContainer.DtoLoader<DTO>
Interface for the data loader to which LazyDtoContainer delegates the
actual data loading.
|
com.vaadin.data.Container.Indexed.ItemAddEvent, com.vaadin.data.Container.Indexed.ItemRemoveEvent
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
Constructor and Description |
---|
LazyDtoContainer(LazyDtoContainer.DtoLoader<DTO> loader,
int batchSize,
Class<DTO> dtoClass,
Serializable idPropertyId,
String... sortablePropertyIds)
Full constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addContainerFilter(com.vaadin.data.Container.Filter filter) |
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) |
void |
addItemSetChangeListener(com.vaadin.data.Container.ItemSetChangeListener listener) |
void |
addListener(com.vaadin.data.Container.ItemSetChangeListener listener) |
void |
addListener(com.vaadin.data.Container.PropertySetChangeListener listener) |
void |
addPropertySetChangeListener(com.vaadin.data.Container.PropertySetChangeListener listener) |
boolean |
containsId(Object itemId) |
void |
discard() |
Object |
firstItemId() |
Collection<com.vaadin.data.Container.Filter> |
getContainerFilters() |
com.vaadin.data.Property |
getContainerProperty(Object itemId,
Object propertyId) |
Collection<?> |
getContainerPropertyIds() |
Object |
getIdByIndex(int index) |
com.vaadin.data.Item |
getItem(Object itemId) |
Collection<?> |
getItemIds() |
List<?> |
getItemIds(int startIndex,
int numberOfItems) |
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) |
void |
refresh() |
void |
removeAllContainerFilters() |
boolean |
removeAllItems() |
void |
removeContainerFilter(com.vaadin.data.Container.Filter filter) |
boolean |
removeContainerProperty(Object propertyId) |
boolean |
removeItem(Object itemId) |
void |
removeItemSetChangeListener(com.vaadin.data.Container.ItemSetChangeListener listener) |
void |
removeListener(com.vaadin.data.Container.ItemSetChangeListener listener) |
void |
removeListener(com.vaadin.data.Container.PropertySetChangeListener listener) |
void |
removePropertySetChangeListener(com.vaadin.data.Container.PropertySetChangeListener listener) |
protected void |
setWrappedContainer(org.vaadin.addons.lazyquerycontainer.LazyQueryContainer wrapped)
Sets the wrapped container.
|
int |
size() |
void |
sort(Object[] propertyId,
boolean[] ascending) |
public LazyDtoContainer(LazyDtoContainer.DtoLoader<DTO> loader, int batchSize, Class<DTO> dtoClass, Serializable idPropertyId, String... sortablePropertyIds)
dtoClass
- loader
- batchSize
- idPropertyId
- sortablePropertyIds
- protected void setWrappedContainer(org.vaadin.addons.lazyquerycontainer.LazyQueryContainer wrapped)
wrapped
- public void refresh()
LazyQueryContainer.refresh()
public void discard()
LazyQueryContainer.discard()
public com.vaadin.data.Item getItem(Object itemId)
getItem
in interface com.vaadin.data.Container
public Collection<?> getContainerPropertyIds()
getContainerPropertyIds
in interface com.vaadin.data.Container
public Collection<?> getItemIds()
getItemIds
in interface com.vaadin.data.Container
public com.vaadin.data.Property getContainerProperty(Object itemId, Object propertyId)
getContainerProperty
in interface com.vaadin.data.Container
public Class<?> getType(Object propertyId)
getType
in interface com.vaadin.data.Container
public int size()
size
in interface com.vaadin.data.Container
public boolean containsId(Object itemId)
containsId
in interface com.vaadin.data.Container
public com.vaadin.data.Item addItem(Object itemId) throws UnsupportedOperationException
addItem
in interface com.vaadin.data.Container
UnsupportedOperationException
public Object addItem() throws UnsupportedOperationException
addItem
in interface com.vaadin.data.Container
UnsupportedOperationException
public boolean removeItem(Object itemId) throws UnsupportedOperationException
removeItem
in interface com.vaadin.data.Container
UnsupportedOperationException
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 boolean removeAllItems() throws UnsupportedOperationException
removeAllItems
in interface com.vaadin.data.Container
UnsupportedOperationException
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 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 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 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 List<?> getItemIds(int startIndex, int numberOfItems)
getItemIds
in interface com.vaadin.data.Container.Indexed
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 Collection<com.vaadin.data.Container.Filter> getContainerFilters()
getContainerFilters
in interface com.vaadin.data.Container.Filterable
public void addContainerFilter(com.vaadin.data.Container.Filter filter) throws com.vaadin.data.util.filter.UnsupportedFilterException
addContainerFilter
in interface com.vaadin.data.Container.Filterable
com.vaadin.data.util.filter.UnsupportedFilterException
public void removeContainerFilter(com.vaadin.data.Container.Filter filter)
removeContainerFilter
in interface com.vaadin.data.Container.Filterable
public void removeAllContainerFilters()
removeAllContainerFilters
in interface com.vaadin.data.Container.Filterable
public void sort(Object[] propertyId, boolean[] ascending)
sort
in interface com.vaadin.data.Container.Sortable
public Collection<?> getSortableContainerPropertyIds()
getSortableContainerPropertyIds
in interface com.vaadin.data.Container.Sortable
public void addItemSetChangeListener(com.vaadin.data.Container.ItemSetChangeListener listener)
addItemSetChangeListener
in interface com.vaadin.data.Container.ItemSetChangeNotifier
public void addListener(com.vaadin.data.Container.ItemSetChangeListener listener)
addListener
in interface com.vaadin.data.Container.ItemSetChangeNotifier
public void removeItemSetChangeListener(com.vaadin.data.Container.ItemSetChangeListener listener)
removeItemSetChangeListener
in interface com.vaadin.data.Container.ItemSetChangeNotifier
public void removeListener(com.vaadin.data.Container.ItemSetChangeListener listener)
removeListener
in interface com.vaadin.data.Container.ItemSetChangeNotifier
public void addPropertySetChangeListener(com.vaadin.data.Container.PropertySetChangeListener listener)
addPropertySetChangeListener
in interface com.vaadin.data.Container.PropertySetChangeNotifier
public void addListener(com.vaadin.data.Container.PropertySetChangeListener listener)
addListener
in interface com.vaadin.data.Container.PropertySetChangeNotifier
public void removePropertySetChangeListener(com.vaadin.data.Container.PropertySetChangeListener listener)
removePropertySetChangeListener
in interface com.vaadin.data.Container.PropertySetChangeNotifier
public void removeListener(com.vaadin.data.Container.PropertySetChangeListener listener)
removeListener
in interface com.vaadin.data.Container.PropertySetChangeNotifier
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.