Class EmptyTreeDataGridItems<E>
java.lang.Object
io.jmix.ui.component.data.datagrid.EmptyDataGridItems<E>
io.jmix.ui.component.data.datagrid.EmptyTreeDataGridItems<E>
- All Implemented Interfaces:
DataGridItems<E>
,DataGridItems.Sortable<E>
,DataUnit
,EmptyDataUnit
,EntityDataGridItems<E>
,EntityDataUnit
,TreeDataGridItems<E>
public class EmptyTreeDataGridItems<E>
extends EmptyDataGridItems<E>
implements TreeDataGridItems<E>
-
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
-
Field Summary
Fields inherited from class io.jmix.ui.component.data.datagrid.EmptyDataGridItems
metaClass
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getChildCount
(E parent) getChildren
(E item) Returns the property of entity which forms the hierarchy.boolean
hasChildren
(E item) void
void
Methods inherited from class io.jmix.ui.component.data.datagrid.EmptyDataGridItems
addItemSetChangeListener, addSelectedItemChangeListener, addStateChangeListener, addValueChangeListener, containsItem, getEntityMetaClass, getItem, getItemByIndex, getItemId, getItems, getItems, getItemValue, getSelectedItem, getState, indexOfItem, setSelectedItem, size
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.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, suppressSorting
Methods inherited from interface io.jmix.ui.component.data.DataUnit
addStateChangeListener, getState
-
Constructor Details
-
EmptyTreeDataGridItems
-
-
Method Details
-
getChildCount
- Specified by:
getChildCount
in interfaceTreeDataGridItems<E>
- Parameters:
parent
- the parent item- Returns:
- child count of the given parent item
-
getChildren
- Specified by:
getChildren
in interfaceTreeDataGridItems<E>
- Parameters:
item
- the item to obtain children ornull
to get root items- Returns:
- children of the given item
-
hasChildren
- Specified by:
hasChildren
in interfaceTreeDataGridItems<E>
- Parameters:
item
- the item to check- Returns:
true
if the item has children,false
otherwise
-
getParent
- Specified by:
getParent
in interfaceTreeDataGridItems<E>
- Parameters:
item
- the item to get parent- Returns:
- the parent of the given item or
null
if no parent
-
getHierarchyPropertyName
Description copied from interface:TreeDataGridItems
Returns the property of entity which forms the hierarchy.- Specified by:
getHierarchyPropertyName
in interfaceTreeDataGridItems<E>
- Returns:
- hierarchy property name
-
sort
- Specified by:
sort
in interfaceDataGridItems.Sortable<E>
- Overrides:
sort
in classEmptyDataGridItems<E>
-
resetSortOrder
public void resetSortOrder()- Specified by:
resetSortOrder
in interfaceDataGridItems.Sortable<E>
- Overrides:
resetSortOrder
in classEmptyDataGridItems<E>
-