Package io.jmix.ui.component.table
Class TreeTableDataContainer<I>
java.lang.Object
io.jmix.ui.component.table.TableDataContainer<I>
io.jmix.ui.component.table.SortableDataContainer<I>
io.jmix.ui.component.table.TreeTableDataContainer<I>
- All Implemented Interfaces:
com.vaadin.v7.data.Container
,com.vaadin.v7.data.Container.Hierarchical
,com.vaadin.v7.data.Container.ItemSetChangeNotifier
,com.vaadin.v7.data.Container.Ordered
,com.vaadin.v7.data.Container.Sortable
,TableSortableContainer
,TreeTableContainer
,Serializable
- Direct Known Subclasses:
TreeTableImpl.AggregatableTreeTableDataContainer
public class TreeTableDataContainer<I>
extends SortableDataContainer<I>
implements TreeTableContainer
- 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
Fields inherited from class io.jmix.ui.component.table.TableDataContainer
dataEventsDelegate, ignoreListeners, itemsCache, itemSetChangeListeners, itemSetChangeSubscription, properties, propertyValueChangeListeners, selectedItemChangeSubscription, stateChangeSubscription, tableItems, valueChangeSubscription, VOID_VALUE_CHANGE_EVENT, wrappersPool
-
Constructor Summary
ConstructorDescriptionTreeTableDataContainer
(TreeTableItems<I> tableDataSource, TableItemsEventsDelegate<I> dataEventsDelegate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
areChildrenAllowed
(Object itemId) Collection<?>
getChildren
(Object itemId) protected int
getItemLevel
(Object itemId) int
protected TreeTableItems<Object>
boolean
hasChildren
(Object itemId) boolean
Collection<?>
boolean
setChildrenAllowed
(Object itemId, boolean areChildrenAllowed) boolean
Methods inherited from class io.jmix.ui.component.table.SortableDataContainer
addItemAfter, addItemAfter, firstItemId, getSortableContainerPropertyIds, getSortableTableSource, isFirstId, isLastId, lastItemId, nextItemId, prevItemId, resetSortOrder, sort
Methods inherited from class io.jmix.ui.component.table.TableDataContainer
addContainerProperty, addItem, addItem, addItemSetChangeListener, addListener, addValueChangeListener, beforeFireItemSetChanged, beforeFireStateChanged, borrowItemWrapper, containsId, datasourceItemSetChanged, datasourceSelectedItemChanged, datasourceStateChanged, datasourceValueChanged, fireItemSetChanged, getContainerProperty, getContainerPropertyIds, getInternalItem, getItem, getItemIds, getItemWrapper, getItemWrapperNonCached, getTableItems, getType, removeAllItems, removeContainerProperty, removeItem, removeItemSetChangeListener, removeListener, resetCachedItems, returnItemWrapper, setProperties, size, unbind
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.v7.data.Container
addContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, size
Methods inherited from interface com.vaadin.v7.data.Container.Hierarchical
removeItem
Methods inherited from interface com.vaadin.v7.data.Container.Ordered
addItemAfter, addItemAfter, firstItemId, isFirstId, isLastId, lastItemId, nextItemId, prevItemId
Methods inherited from interface com.vaadin.v7.data.Container.Sortable
getSortableContainerPropertyIds, sort
Methods inherited from interface io.jmix.ui.widget.data.TableSortableContainer
resetSortOrder
-
Constructor Details
-
TreeTableDataContainer
public TreeTableDataContainer(TreeTableItems<I> tableDataSource, TableItemsEventsDelegate<I> dataEventsDelegate)
-
-
Method Details
-
getLevel
- Specified by:
getLevel
in interfaceTreeTableContainer
-
getItemLevel
-
getChildren
- Specified by:
getChildren
in interfacecom.vaadin.v7.data.Container.Hierarchical
-
getTreeTableSource
-
getParent
- Specified by:
getParent
in interfacecom.vaadin.v7.data.Container.Hierarchical
-
rootItemIds
- Specified by:
rootItemIds
in interfacecom.vaadin.v7.data.Container.Hierarchical
-
setParent
- Specified by:
setParent
in interfacecom.vaadin.v7.data.Container.Hierarchical
- Throws:
UnsupportedOperationException
-
areChildrenAllowed
- Specified by:
areChildrenAllowed
in interfacecom.vaadin.v7.data.Container.Hierarchical
-
setChildrenAllowed
public boolean setChildrenAllowed(Object itemId, boolean areChildrenAllowed) throws UnsupportedOperationException - Specified by:
setChildrenAllowed
in interfacecom.vaadin.v7.data.Container.Hierarchical
- Throws:
UnsupportedOperationException
-
isRoot
- Specified by:
isRoot
in interfacecom.vaadin.v7.data.Container.Hierarchical
-
hasChildren
- Specified by:
hasChildren
in interfacecom.vaadin.v7.data.Container.Hierarchical
-