Package io.jmix.ui.component.data
Interface TreeDataGridItems<T>
- Type Parameters:
T
- items type
- All Superinterfaces:
DataGridItems<T>
,DataGridItems.Sortable<T>
,DataUnit
- All Known Implementing Classes:
ContainerTreeDataGridItems
,EmptyTreeDataGridItems
A common interface for providing data for the
TreeDataGrid
component.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.data.DataGridItems
DataGridItems.ItemSetChangeEvent<T>, DataGridItems.SelectedItemChangeEvent<T>, DataGridItems.Sortable<T>, DataGridItems.ValueChangeEvent<T>
Nested classes/interfaces inherited from interface io.jmix.ui.component.data.DataUnit
DataUnit.StateChangeEvent
-
Method Summary
Modifier and TypeMethodDescriptionint
getChildCount
(T parent) getChildren
(T item) Returns the property of entity which forms the hierarchy.boolean
hasChildren
(T item) Methods inherited from interface io.jmix.ui.component.data.DataGridItems
addItemSetChangeListener, addSelectedItemChangeListener, addValueChangeListener, containsItem, getItem, getItemByIndex, getItemId, getItems, getItems, getItemValue, getSelectedItem, indexOfItem, setSelectedItem, size
Methods inherited from interface io.jmix.ui.component.data.DataGridItems.Sortable
enableSorting, resetSortOrder, sort, suppressSorting
Methods inherited from interface io.jmix.ui.component.data.DataUnit
addStateChangeListener, getState
-
Method Details
-
getChildCount
- Parameters:
parent
- the parent item- Returns:
- child count of the given parent item
-
getChildren
- Parameters:
item
- the item to obtain children ornull
to get root items- Returns:
- children of the given item
-
hasChildren
- Parameters:
item
- the item to check- Returns:
true
if the item has children,false
otherwise
-
getParent
- Parameters:
item
- the item to get parent- Returns:
- the parent of the given item or
null
if no parent
-
getHierarchyPropertyName
String getHierarchyPropertyName()Returns the property of entity which forms the hierarchy.- Returns:
- hierarchy property name
-