public class MyBeanItemContainer<BeanType> extends com.vaadin.data.util.AbstractInMemoryContainer<Object,Object,MyBeanItem<BeanType>>
com.vaadin.data.util.AbstractInMemoryContainer.BaseItemAddEvent, com.vaadin.data.util.AbstractInMemoryContainer.BaseItemRemoveEvent
com.vaadin.data.util.AbstractContainer.BaseItemSetChangeEvent, com.vaadin.data.util.AbstractContainer.BasePropertySetChangeEvent
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 |
---|
MyBeanItemContainer(Class<BeanType> beanType) |
MyBeanItemContainer(Collection<?> beanCollection,
Class<? extends BeanType> beanType,
String prefix) |
MyBeanItemContainer(Map<String,?> beanMap,
Class<? extends BeanType> beanType,
String prefix) |
Modifier and Type | Method and Description |
---|---|
MyBeanItem<BeanType> |
addBean(BeanType bean) |
MyBeanItem<BeanType> |
addBean(BeanType bean,
String prefix) |
MyBeanItem<BeanType> |
addBean(String itemId,
BeanType bean,
String prefix) |
Class<? extends BeanType> |
getBeanType() |
com.vaadin.data.Property<?> |
getContainerProperty(Object itemId,
Object propertyId) |
Collection<?> |
getContainerPropertyIds() |
Class<?> |
getType(Object propertyId) |
protected MyBeanItem<BeanType> |
getUnfilteredItem(Object itemId) |
protected void |
registerNewItem(int position,
Object itemId,
MyBeanItem<BeanType> item) |
boolean |
removeAllItems() |
boolean |
removeItem(Object itemId) |
addContainerProperty, addFilter, addItem, addItem, addItemAfter, addItemAfter, addItemAt, addItemAt, addItemSetChangeListener, addListener, containsId, doFilterContainer, doSort, filterAll, fireItemAdded, fireItemRemoved, fireItemsAdded, fireItemsRemoved, firstItemId, getAllItemIds, getContainerFilters, getFilteredItemIds, getFilters, getFirstVisibleItem, getIdByIndex, getItem, getItemIds, getItemIds, getItemSorter, getSortablePropertyIds, getVisibleItemIds, hasContainerFilters, indexOfId, internalAddItemAfter, internalAddItemAt, internalAddItemAtEnd, internalRemoveAllItems, internalRemoveItem, isFiltered, isFirstId, isLastId, isPropertyFiltered, lastItemId, nextItemId, passesFilters, prevItemId, removeAllFilters, removeContainerProperty, removeFilter, removeFilters, removeItemSetChangeListener, removeListener, setAllItemIds, setFilteredItemIds, setFilters, setItemSorter, size, sortContainer
addListener, addPropertySetChangeListener, fireContainerPropertySetChange, fireContainerPropertySetChange, fireItemSetChange, fireItemSetChange, getItemSetChangeListeners, getListeners, getPropertySetChangeListeners, removeListener, removePropertySetChangeListener, setItemSetChangeListeners, setPropertySetChangeListeners
public MyBeanItemContainer(Class<BeanType> beanType) throws IllegalArgumentException
IllegalArgumentException
public MyBeanItemContainer(Collection<?> beanCollection, Class<? extends BeanType> beanType, String prefix) throws IllegalArgumentException
IllegalArgumentException
public MyBeanItemContainer(Map<String,?> beanMap, Class<? extends BeanType> beanType, String prefix) throws IllegalArgumentException
IllegalArgumentException
public MyBeanItem<BeanType> addBean(BeanType bean)
public MyBeanItem<BeanType> addBean(BeanType bean, String prefix)
public MyBeanItem<BeanType> addBean(String itemId, BeanType bean, String prefix)
public Collection<?> getContainerPropertyIds()
public com.vaadin.data.Property<?> getContainerProperty(Object itemId, Object propertyId)
protected void registerNewItem(int position, Object itemId, MyBeanItem<BeanType> item)
registerNewItem
in class com.vaadin.data.util.AbstractInMemoryContainer<Object,Object,MyBeanItem<BeanType>>
protected MyBeanItem<BeanType> getUnfilteredItem(Object itemId)
getUnfilteredItem
in class com.vaadin.data.util.AbstractInMemoryContainer<Object,Object,MyBeanItem<BeanType>>
public boolean removeItem(Object itemId) throws UnsupportedOperationException
removeItem
in interface com.vaadin.data.Container
removeItem
in class com.vaadin.data.util.AbstractInMemoryContainer<Object,Object,MyBeanItem<BeanType>>
UnsupportedOperationException
public boolean removeAllItems() throws UnsupportedOperationException
removeAllItems
in interface com.vaadin.data.Container
removeAllItems
in class com.vaadin.data.util.AbstractInMemoryContainer<Object,Object,MyBeanItem<BeanType>>
UnsupportedOperationException
Copyright © 2016 Sensia Software LLC. All rights reserved.