Package io.jmix.ui.component.data
Interface TreeTableItems<I>
- Type Parameters:
I
- row item type
- All Superinterfaces:
DataUnit
,TableItems<I>
,TableItems.Ordered<I>
,TableItems.Sortable<I>
- All Known Implementing Classes:
ContainerTreeTableItems
,EmptyTreeTableItems
A common interface for providing data for
TreeTable
component.-
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>
-
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 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
firstItemId, isFirstId, isLastId, lastItemId, nextItemId, prevItemId
Methods inherited from interface io.jmix.ui.component.data.TableItems.Sortable
enableSorting, resetSortOrder, sort, suppressSorting
-
Method Details
-
getHierarchyPropertyName
String getHierarchyPropertyName()Property of entity which forms the hierarchy -
getRootItemIds
Collection<?> getRootItemIds()Identifiers of all root items -
getParent
Get parent ID for item with the given ID -
getChildren
Get children IDs for item with the given ID -
isRoot
True if item with the given ID is a root item -
hasChildren
True if item with the given ID has children
-