Package io.jmix.ui.component.data.table
Class ContainerTreeTableItems<E>
java.lang.Object
io.jmix.ui.component.data.table.ContainerTableItems<E>
io.jmix.ui.component.data.table.ContainerTreeTableItems<E>
- All Implemented Interfaces:
DataUnit
,ContainerDataUnit<E>
,EntityDataUnit
,EntityTableItems<E>
,TableItems<E>
,TableItems.Ordered<E>
,TableItems.Sortable<E>
,TreeTableItems<E>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.data.DataUnit
DataUnit.StateChangeEvent
Nested classes/interfaces inherited from interface io.jmix.ui.component.data.TableItems
TableItems.ItemSetChangeEvent<T>, TableItems.Ordered<T>, TableItems.SelectedItemChangeEvent<T>, TableItems.Sortable<T>, TableItems.ValueChangeEvent<T>
-
Field Summary
Fields inherited from class io.jmix.ui.component.data.table.ContainerTableItems
aggregatableDelegate, container, events, suppressSorting
-
Constructor Summary
ConstructorDescriptionContainerTreeTableItems
(CollectionContainer<E> container, String hierarchyProperty) ContainerTreeTableItems
(CollectionContainer<E> container, String hierarchyProperty, boolean showOrphans) -
Method Summary
Modifier and TypeMethodDescriptionCollection<?>
getChildren
(Object itemId) Get children IDs for item with the given IDProperty of entity which forms the hierarchyGet parent ID for item with the given IDCollection<?>
Identifiers of all root itemsboolean
hasChildren
(Object itemId) True if item with the given ID has childrenboolean
True if item with the given ID is a root itemMethods inherited from class io.jmix.ui.component.data.table.ContainerTableItems
addItemSetChangeListener, addSelectedItemChangeListener, addStateChangeListener, addValueChangeListener, containerCollectionChanged, containerItemChanged, containerItemPropertyChanged, containsId, createSort, enableSorting, getContainer, getEntityMetaClass, getItem, getItemIds, getItemNN, getItems, getItemValue, getSelectedItem, getState, getType, isFirstId, isLastId, lastItemId, nextItemId, prevItemId, resetSortOrder, setSelectedItem, size, sort, supportsProperty, suppressSorting, updateItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.component.data.DataUnit
addStateChangeListener, getState
Methods inherited from interface io.jmix.ui.component.data.TableItems
addItemSetChangeListener, addSelectedItemChangeListener, addValueChangeListener, containsId, getItem, getItemIds, getItemNN, getItems, getItemValue, getType, size, supportsProperty, updateItem
Methods inherited from interface io.jmix.ui.component.data.TableItems.Ordered
isFirstId, isLastId, lastItemId, nextItemId, prevItemId
Methods inherited from interface io.jmix.ui.component.data.TableItems.Sortable
enableSorting, resetSortOrder, sort, suppressSorting
-
Constructor Details
-
ContainerTreeTableItems
public ContainerTreeTableItems(CollectionContainer<E> container, String hierarchyProperty, boolean showOrphans) -
ContainerTreeTableItems
-
-
Method Details
-
getHierarchyPropertyName
Description copied from interface:TreeTableItems
Property of entity which forms the hierarchy- Specified by:
getHierarchyPropertyName
in interfaceTreeTableItems<E>
-
getRootItemIds
Description copied from interface:TreeTableItems
Identifiers of all root items- Specified by:
getRootItemIds
in interfaceTreeTableItems<E>
-
getParent
Description copied from interface:TreeTableItems
Get parent ID for item with the given ID- Specified by:
getParent
in interfaceTreeTableItems<E>
-
getChildren
Description copied from interface:TreeTableItems
Get children IDs for item with the given ID- Specified by:
getChildren
in interfaceTreeTableItems<E>
-
isRoot
Description copied from interface:TreeTableItems
True if item with the given ID is a root item- Specified by:
isRoot
in interfaceTreeTableItems<E>
-
hasChildren
Description copied from interface:TreeTableItems
True if item with the given ID has children- Specified by:
hasChildren
in interfaceTreeTableItems<E>
-
firstItemId
- Specified by:
firstItemId
in interfaceTableItems.Ordered<E>
- Overrides:
firstItemId
in classContainerTableItems<E>
- Returns:
- ID of the first visible item
-