Package io.jmix.ui.component.table
Class TableDataContainer<I>
java.lang.Object
io.jmix.ui.component.table.TableDataContainer<I>
- All Implemented Interfaces:
com.vaadin.v7.data.Container,com.vaadin.v7.data.Container.ItemSetChangeNotifier,Serializable
- Direct Known Subclasses:
AbstractTable.AggregatableTableDataContainer,SortableDataContainer
public class TableDataContainer<I>
extends Object
implements com.vaadin.v7.data.Container, com.vaadin.v7.data.Container.ItemSetChangeNotifier
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.v7.data.Container
com.vaadin.v7.data.Container.Editor, com.vaadin.v7.data.Container.Filter, com.vaadin.v7.data.Container.Filterable, com.vaadin.v7.data.Container.Hierarchical, com.vaadin.v7.data.Container.Indexed, com.vaadin.v7.data.Container.ItemSetChangeEvent, com.vaadin.v7.data.Container.ItemSetChangeListener, com.vaadin.v7.data.Container.ItemSetChangeNotifier, com.vaadin.v7.data.Container.Ordered, com.vaadin.v7.data.Container.PropertySetChangeEvent, com.vaadin.v7.data.Container.PropertySetChangeListener, com.vaadin.v7.data.Container.PropertySetChangeNotifier, com.vaadin.v7.data.Container.SimpleFilterable, com.vaadin.v7.data.Container.Sortable, com.vaadin.v7.data.Container.Viewer -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TableItemsEventsDelegate<I>protected booleanprotected Map<Object,TableItemWrapper> protected List<com.vaadin.v7.data.Container.ItemSetChangeListener>protected Subscriptionprotected Collection<Object>protected List<com.vaadin.v7.data.Property.ValueChangeListener>protected Subscriptionprotected Subscriptionprotected TableItems<I>protected Subscriptionprotected static final com.vaadin.v7.data.Property.ValueChangeEventprotected Queue<TableItemWrapper> -
Constructor Summary
ConstructorsConstructorDescriptionTableDataContainer(TableItems<I> tableItems, TableItemsEventsDelegate<I> dataEventsDelegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddContainerProperty(Object propertyId, Class<?> type, Object defaultValue) addItem()com.vaadin.v7.data.ItemvoidaddItemSetChangeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) voidaddListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) voidaddValueChangeListener(com.vaadin.v7.data.Property.ValueChangeListener propertyValueChangeListener) protected voidprotected voidprotected TableItemWrapperbooleancontainsId(Object itemId) protected voidprotected voidprotected voidprotected voidprotected voidcom.vaadin.v7.data.PropertygetContainerProperty(Object itemId, Object propertyId) Collection<?>getInternalItem(Object itemId) com.vaadin.v7.data.ItemCollection<?>protected com.vaadin.v7.data.ItemgetItemWrapper(Object dataItem, Object itemId) protected TableItemWrappergetItemWrapperNonCached(Object item, Object itemId) Class<?>booleanbooleanremoveContainerProperty(Object propertyId) booleanremoveItem(Object itemId) voidremoveItemSetChangeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) voidremoveListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) protected voidprotected voidreturnItemWrapper(TableItemWrapper tableItemWrapper) voidsetProperties(Collection<Object> properties) intsize()voidunbind()
-
Field Details
-
VOID_VALUE_CHANGE_EVENT
protected static final com.vaadin.v7.data.Property.ValueChangeEvent VOID_VALUE_CHANGE_EVENT -
tableItems
-
dataEventsDelegate
-
ignoreListeners
protected boolean ignoreListeners -
properties
-
itemsCache
-
wrappersPool
-
itemSetChangeListeners
-
propertyValueChangeListeners
-
itemSetChangeSubscription
-
valueChangeSubscription
-
stateChangeSubscription
-
selectedItemChangeSubscription
-
-
Constructor Details
-
TableDataContainer
-
-
Method Details
-
setProperties
-
unbind
public void unbind() -
getItem
- Specified by:
getItemin interfacecom.vaadin.v7.data.Container
-
getInternalItem
-
getItemWrapper
-
borrowItemWrapper
-
returnItemWrapper
-
getItemWrapperNonCached
-
fireItemSetChanged
protected void fireItemSetChanged() -
getContainerPropertyIds
- Specified by:
getContainerPropertyIdsin interfacecom.vaadin.v7.data.Container
-
getItemIds
- Specified by:
getItemIdsin interfacecom.vaadin.v7.data.Container
-
getContainerProperty
- Specified by:
getContainerPropertyin interfacecom.vaadin.v7.data.Container
-
getType
- Specified by:
getTypein interfacecom.vaadin.v7.data.Container
-
size
public int size()- Specified by:
sizein interfacecom.vaadin.v7.data.Container
-
containsId
- Specified by:
containsIdin interfacecom.vaadin.v7.data.Container
-
addItem
- Specified by:
addItemin interfacecom.vaadin.v7.data.Container- Throws:
UnsupportedOperationException
-
addItem
- Specified by:
addItemin interfacecom.vaadin.v7.data.Container- Throws:
UnsupportedOperationException
-
removeItem
- Specified by:
removeItemin interfacecom.vaadin.v7.data.Container- Throws:
UnsupportedOperationException
-
addContainerProperty
public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException - Specified by:
addContainerPropertyin interfacecom.vaadin.v7.data.Container- Throws:
UnsupportedOperationException
-
removeContainerProperty
- Specified by:
removeContainerPropertyin interfacecom.vaadin.v7.data.Container- Throws:
UnsupportedOperationException
-
removeAllItems
- Specified by:
removeAllItemsin interfacecom.vaadin.v7.data.Container- Throws:
UnsupportedOperationException
-
addItemSetChangeListener
public void addItemSetChangeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) - Specified by:
addItemSetChangeListenerin interfacecom.vaadin.v7.data.Container.ItemSetChangeNotifier
-
addListener
public void addListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) - Specified by:
addListenerin interfacecom.vaadin.v7.data.Container.ItemSetChangeNotifier
-
removeItemSetChangeListener
public void removeItemSetChangeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) - Specified by:
removeItemSetChangeListenerin interfacecom.vaadin.v7.data.Container.ItemSetChangeNotifier
-
removeListener
public void removeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) - Specified by:
removeListenerin interfacecom.vaadin.v7.data.Container.ItemSetChangeNotifier
-
resetCachedItems
protected void resetCachedItems() -
datasourceItemSetChanged
-
beforeFireItemSetChanged
protected void beforeFireItemSetChanged() -
datasourceValueChanged
-
beforeFireStateChanged
-
datasourceStateChanged
-
datasourceSelectedItemChanged
-
getTableItems
-
addValueChangeListener
public void addValueChangeListener(com.vaadin.v7.data.Property.ValueChangeListener propertyValueChangeListener)
-