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
Modifier and TypeFieldDescriptionprotected TableItemsEventsDelegate<I>
protected boolean
protected Map<Object,
TableItemWrapper> protected List<com.vaadin.v7.data.Container.ItemSetChangeListener>
protected Subscription
protected Collection<Object>
protected List<com.vaadin.v7.data.Property.ValueChangeListener>
protected Subscription
protected Subscription
protected TableItems<I>
protected Subscription
protected static final com.vaadin.v7.data.Property.ValueChangeEvent
protected Queue<TableItemWrapper>
-
Constructor Summary
ConstructorDescriptionTableDataContainer
(TableItems<I> tableItems, TableItemsEventsDelegate<I> dataEventsDelegate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
addContainerProperty
(Object propertyId, Class<?> type, Object defaultValue) addItem()
com.vaadin.v7.data.Item
void
addItemSetChangeListener
(com.vaadin.v7.data.Container.ItemSetChangeListener listener) void
addListener
(com.vaadin.v7.data.Container.ItemSetChangeListener listener) void
addValueChangeListener
(com.vaadin.v7.data.Property.ValueChangeListener propertyValueChangeListener) protected void
protected void
protected TableItemWrapper
boolean
containsId
(Object itemId) protected void
protected void
protected void
protected void
protected void
com.vaadin.v7.data.Property
getContainerProperty
(Object itemId, Object propertyId) Collection<?>
getInternalItem
(Object itemId) com.vaadin.v7.data.Item
Collection<?>
protected com.vaadin.v7.data.Item
getItemWrapper
(Object dataItem, Object itemId) protected TableItemWrapper
getItemWrapperNonCached
(Object item, Object itemId) Class<?>
boolean
boolean
removeContainerProperty
(Object propertyId) boolean
removeItem
(Object itemId) void
removeItemSetChangeListener
(com.vaadin.v7.data.Container.ItemSetChangeListener listener) void
removeListener
(com.vaadin.v7.data.Container.ItemSetChangeListener listener) protected void
protected void
returnItemWrapper
(TableItemWrapper tableItemWrapper) void
setProperties
(Collection<Object> properties) int
size()
void
unbind()
-
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:
getItem
in interfacecom.vaadin.v7.data.Container
-
getInternalItem
-
getItemWrapper
-
borrowItemWrapper
-
returnItemWrapper
-
getItemWrapperNonCached
-
fireItemSetChanged
protected void fireItemSetChanged() -
getContainerPropertyIds
- Specified by:
getContainerPropertyIds
in interfacecom.vaadin.v7.data.Container
-
getItemIds
- Specified by:
getItemIds
in interfacecom.vaadin.v7.data.Container
-
getContainerProperty
- Specified by:
getContainerProperty
in interfacecom.vaadin.v7.data.Container
-
getType
- Specified by:
getType
in interfacecom.vaadin.v7.data.Container
-
size
public int size()- Specified by:
size
in interfacecom.vaadin.v7.data.Container
-
containsId
- Specified by:
containsId
in interfacecom.vaadin.v7.data.Container
-
addItem
- Specified by:
addItem
in interfacecom.vaadin.v7.data.Container
- Throws:
UnsupportedOperationException
-
addItem
- Specified by:
addItem
in interfacecom.vaadin.v7.data.Container
- Throws:
UnsupportedOperationException
-
removeItem
- Specified by:
removeItem
in interfacecom.vaadin.v7.data.Container
- Throws:
UnsupportedOperationException
-
addContainerProperty
public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException - Specified by:
addContainerProperty
in interfacecom.vaadin.v7.data.Container
- Throws:
UnsupportedOperationException
-
removeContainerProperty
- Specified by:
removeContainerProperty
in interfacecom.vaadin.v7.data.Container
- Throws:
UnsupportedOperationException
-
removeAllItems
- Specified by:
removeAllItems
in interfacecom.vaadin.v7.data.Container
- Throws:
UnsupportedOperationException
-
addItemSetChangeListener
public void addItemSetChangeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) - Specified by:
addItemSetChangeListener
in interfacecom.vaadin.v7.data.Container.ItemSetChangeNotifier
-
addListener
public void addListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) - Specified by:
addListener
in interfacecom.vaadin.v7.data.Container.ItemSetChangeNotifier
-
removeItemSetChangeListener
public void removeItemSetChangeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) - Specified by:
removeItemSetChangeListener
in interfacecom.vaadin.v7.data.Container.ItemSetChangeNotifier
-
removeListener
public void removeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener) - Specified by:
removeListener
in 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)
-