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:
  • Field Details

    • VOID_VALUE_CHANGE_EVENT

      protected static final com.vaadin.v7.data.Property.ValueChangeEvent VOID_VALUE_CHANGE_EVENT
    • tableItems

      protected TableItems<I> tableItems
    • dataEventsDelegate

      protected TableItemsEventsDelegate<I> dataEventsDelegate
    • ignoreListeners

      protected boolean ignoreListeners
    • properties

      protected Collection<Object> properties
    • itemsCache

      protected Map<Object,TableItemWrapper> itemsCache
    • wrappersPool

      protected Queue<TableItemWrapper> wrappersPool
    • itemSetChangeListeners

      protected List<com.vaadin.v7.data.Container.ItemSetChangeListener> itemSetChangeListeners
    • propertyValueChangeListeners

      protected List<com.vaadin.v7.data.Property.ValueChangeListener> propertyValueChangeListeners
    • itemSetChangeSubscription

      protected Subscription itemSetChangeSubscription
    • valueChangeSubscription

      protected Subscription valueChangeSubscription
    • stateChangeSubscription

      protected Subscription stateChangeSubscription
    • selectedItemChangeSubscription

      protected Subscription selectedItemChangeSubscription
  • Constructor Details

  • Method Details

    • setProperties

      public void setProperties(Collection<Object> properties)
    • unbind

      public void unbind()
    • getItem

      @Nullable public com.vaadin.v7.data.Item getItem(Object itemId)
      Specified by:
      getItem in interface com.vaadin.v7.data.Container
    • getInternalItem

      @Nullable public I getInternalItem(Object itemId)
    • getItemWrapper

      protected com.vaadin.v7.data.Item getItemWrapper(Object dataItem, Object itemId)
    • borrowItemWrapper

      protected TableItemWrapper borrowItemWrapper()
    • returnItemWrapper

      protected void returnItemWrapper(TableItemWrapper tableItemWrapper)
    • getItemWrapperNonCached

      protected TableItemWrapper getItemWrapperNonCached(Object item, Object itemId)
    • fireItemSetChanged

      protected void fireItemSetChanged()
    • getContainerPropertyIds

      public Collection<?> getContainerPropertyIds()
      Specified by:
      getContainerPropertyIds in interface com.vaadin.v7.data.Container
    • getItemIds

      public Collection<?> getItemIds()
      Specified by:
      getItemIds in interface com.vaadin.v7.data.Container
    • getContainerProperty

      @Nullable public com.vaadin.v7.data.Property getContainerProperty(Object itemId, Object propertyId)
      Specified by:
      getContainerProperty in interface com.vaadin.v7.data.Container
    • getType

      public Class<?> getType(Object propertyId)
      Specified by:
      getType in interface com.vaadin.v7.data.Container
    • size

      public int size()
      Specified by:
      size in interface com.vaadin.v7.data.Container
    • containsId

      public boolean containsId(Object itemId)
      Specified by:
      containsId in interface com.vaadin.v7.data.Container
    • addItem

      public com.vaadin.v7.data.Item addItem(Object itemId) throws UnsupportedOperationException
      Specified by:
      addItem in interface com.vaadin.v7.data.Container
      Throws:
      UnsupportedOperationException
    • addItem

      public Object addItem() throws UnsupportedOperationException
      Specified by:
      addItem in interface com.vaadin.v7.data.Container
      Throws:
      UnsupportedOperationException
    • removeItem

      public boolean removeItem(Object itemId) throws UnsupportedOperationException
      Specified by:
      removeItem in interface com.vaadin.v7.data.Container
      Throws:
      UnsupportedOperationException
    • addContainerProperty

      public boolean addContainerProperty(Object propertyId, Class<?> type, Object defaultValue) throws UnsupportedOperationException
      Specified by:
      addContainerProperty in interface com.vaadin.v7.data.Container
      Throws:
      UnsupportedOperationException
    • removeContainerProperty

      public boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException
      Specified by:
      removeContainerProperty in interface com.vaadin.v7.data.Container
      Throws:
      UnsupportedOperationException
    • removeAllItems

      public boolean removeAllItems() throws UnsupportedOperationException
      Specified by:
      removeAllItems in interface com.vaadin.v7.data.Container
      Throws:
      UnsupportedOperationException
    • addItemSetChangeListener

      public void addItemSetChangeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener)
      Specified by:
      addItemSetChangeListener in interface com.vaadin.v7.data.Container.ItemSetChangeNotifier
    • addListener

      public void addListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener)
      Specified by:
      addListener in interface com.vaadin.v7.data.Container.ItemSetChangeNotifier
    • removeItemSetChangeListener

      public void removeItemSetChangeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener)
      Specified by:
      removeItemSetChangeListener in interface com.vaadin.v7.data.Container.ItemSetChangeNotifier
    • removeListener

      public void removeListener(com.vaadin.v7.data.Container.ItemSetChangeListener listener)
      Specified by:
      removeListener in interface com.vaadin.v7.data.Container.ItemSetChangeNotifier
    • resetCachedItems

      protected void resetCachedItems()
    • datasourceItemSetChanged

      protected void datasourceItemSetChanged(TableItems.ItemSetChangeEvent<I> e)
    • beforeFireItemSetChanged

      protected void beforeFireItemSetChanged()
    • datasourceValueChanged

      protected void datasourceValueChanged(TableItems.ValueChangeEvent<I> e)
    • beforeFireStateChanged

      protected void beforeFireStateChanged(BindingState state)
    • datasourceStateChanged

      protected void datasourceStateChanged(DataUnit.StateChangeEvent e)
    • datasourceSelectedItemChanged

      protected void datasourceSelectedItemChanged(TableItems.SelectedItemChangeEvent<I> e)
    • getTableItems

      public TableItems<I> getTableItems()
    • addValueChangeListener

      public void addValueChangeListener(com.vaadin.v7.data.Property.ValueChangeListener propertyValueChangeListener)