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.StateChangeEventNested 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
ConstructorsConstructorDescriptionContainerTreeTableItems(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 itemsbooleanhasChildren(Object itemId) True if item with the given ID has childrenbooleanTrue 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, updateItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.ui.component.data.DataUnit
addStateChangeListener, getStateMethods inherited from interface io.jmix.ui.component.data.TableItems
addItemSetChangeListener, addSelectedItemChangeListener, addValueChangeListener, containsId, getItem, getItemIds, getItemNN, getItems, getItemValue, getType, size, supportsProperty, updateItemMethods inherited from interface io.jmix.ui.component.data.TableItems.Ordered
isFirstId, isLastId, lastItemId, nextItemId, prevItemIdMethods 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:TreeTableItemsProperty of entity which forms the hierarchy- Specified by:
getHierarchyPropertyNamein interfaceTreeTableItems<E>
-
getRootItemIds
Description copied from interface:TreeTableItemsIdentifiers of all root items- Specified by:
getRootItemIdsin interfaceTreeTableItems<E>
-
getParent
Description copied from interface:TreeTableItemsGet parent ID for item with the given ID- Specified by:
getParentin interfaceTreeTableItems<E>
-
getChildren
Description copied from interface:TreeTableItemsGet children IDs for item with the given ID- Specified by:
getChildrenin interfaceTreeTableItems<E>
-
isRoot
Description copied from interface:TreeTableItemsTrue if item with the given ID is a root item- Specified by:
isRootin interfaceTreeTableItems<E>
-
hasChildren
Description copied from interface:TreeTableItemsTrue if item with the given ID has children- Specified by:
hasChildrenin interfaceTreeTableItems<E>
-
firstItemId
- Specified by:
firstItemIdin interfaceTableItems.Ordered<E>- Overrides:
firstItemIdin classContainerTableItems<E>- Returns:
- ID of the first visible item
-