Package io.jmix.flowui.data.grid
Interface TreeGridDataItems<T>
- Type Parameters:
T
- items type
- All Superinterfaces:
com.vaadin.flow.data.provider.DataProvider<T,
,Void> DataUnit
,GridDataItems<T>
,HasType<T>
,com.vaadin.flow.data.provider.hierarchy.HierarchicalDataProvider<T,
,Void> Serializable
- All Known Subinterfaces:
EntityTreeGridDataItems<T>
- All Known Implementing Classes:
JmixTreeGridDataProvider
public interface TreeGridDataItems<T>
extends GridDataItems<T>, com.vaadin.flow.data.provider.hierarchy.HierarchicalDataProvider<T,Void>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.flowui.data.DataUnit
DataUnit.StateChangeEvent
Nested classes/interfaces inherited from interface io.jmix.flowui.data.grid.GridDataItems
GridDataItems.ItemSetChangeEvent<T>, GridDataItems.SelectedItemChangeEvent<T>, GridDataItems.Sortable<T>, GridDataItems.ValueChangeEvent<T>
-
Method Summary
Modifier and TypeMethodDescriptionint
getChildCount
(T parent) getChildren
(T item) Returns the property of entity which forms the hierarchy.int
Returns the hierarchy level of an item.boolean
hasChildren
(T item) Methods inherited from interface com.vaadin.flow.data.provider.DataProvider
addDataProviderListener, getId, isInMemory, refreshAll, refreshItem, refreshItem
Methods inherited from interface io.jmix.flowui.data.DataUnit
addStateChangeListener, getState
Methods inherited from interface io.jmix.flowui.data.grid.GridDataItems
addItemSetChangeListener, addSelectedItemChangeListener, addValueChangeListener, containsItem, getItem, getItemByIndex, getItemId, getItems, getItems, getItemValue, getSelectedItem, indexOfItem, setSelectedItem, size
Methods inherited from interface com.vaadin.flow.data.provider.hierarchy.HierarchicalDataProvider
fetch, fetchChildren, getChildCount, size, withConfigurableFilter, withConfigurableFilter, withConvertedFilter
-
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
-
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
-
getLevel
Returns the hierarchy level of an item.- Parameters:
item
- the item to get level- Returns:
- the level of the given item
-