Package io.jmix.ui.component.datagrid
Class HierarchicalDataGridDataProvider<T>
java.lang.Object
com.vaadin.data.provider.AbstractDataProvider<T,com.vaadin.server.SerializablePredicate<T>>
io.jmix.ui.component.datagrid.DataGridDataProvider<T>
io.jmix.ui.component.datagrid.SortableDataGridDataProvider<T>
io.jmix.ui.component.datagrid.HierarchicalDataGridDataProvider<T>
- All Implemented Interfaces:
com.vaadin.data.provider.DataProvider<T,
,com.vaadin.server.SerializablePredicate<T>> com.vaadin.data.provider.HierarchicalDataProvider<T,
,com.vaadin.server.SerializablePredicate<T>> EnhancedHierarchicalDataProvider<T>
,SortableDataProvider<T>
,Serializable
public class HierarchicalDataGridDataProvider<T>
extends SortableDataGridDataProvider<T>
implements com.vaadin.data.provider.HierarchicalDataProvider<T,com.vaadin.server.SerializablePredicate<T>>, EnhancedHierarchicalDataProvider<T>
- See Also:
-
Field Summary
Fields inherited from class io.jmix.ui.component.datagrid.DataGridDataProvider
dataEventsDelegate, dataGridItems, itemSetChangeSubscription, selectedItemChangeSubscription, stateChangeSubscription, valueChangeSubscription
-
Constructor Summary
ConstructorDescriptionHierarchicalDataGridDataProvider
(TreeDataGridItems<T> dataGridSource, DataGridItemsEventsDelegate<T> dataEventsDelegate) -
Method Summary
Modifier and TypeMethodDescriptionfetchChildren
(com.vaadin.data.provider.HierarchicalQuery<T, com.vaadin.server.SerializablePredicate<T>> query) int
getChildCount
(com.vaadin.data.provider.HierarchicalQuery<T, com.vaadin.server.SerializablePredicate<T>> query) int
Returns the hierarchy level of an item.Returns the parent of given item.boolean
hasChildren
(T item) Methods inherited from class io.jmix.ui.component.datagrid.SortableDataGridDataProvider
getSortableDataGridSource, resetSortOrder, sort
Methods inherited from class io.jmix.ui.component.datagrid.DataGridDataProvider
datasourceItemSetChanged, datasourceSelectedItemChanged, datasourceStateChanged, datasourceValueChanged, fetch, getDataGridItems, getId, isInMemory, size, unbind
Methods inherited from class com.vaadin.data.provider.AbstractDataProvider
addDataProviderListener, addListener, fireEvent, refreshAll, refreshItem
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vaadin.data.provider.DataProvider
addDataProviderListener, getId, isInMemory, refreshAll, refreshItem, withConfigurableFilter, withConfigurableFilter, withConvertedFilter
Methods inherited from interface com.vaadin.data.provider.HierarchicalDataProvider
fetch, size
-
Constructor Details
-
HierarchicalDataGridDataProvider
public HierarchicalDataGridDataProvider(TreeDataGridItems<T> dataGridSource, DataGridItemsEventsDelegate<T> dataEventsDelegate)
-
-
Method Details
-
getTreeDataGridSource
-
getChildCount
-
fetchChildren
-
hasChildren
-
getLevel
Description copied from interface:EnhancedHierarchicalDataProvider
Returns the hierarchy level of an item.- Specified by:
getLevel
in interfaceEnhancedHierarchicalDataProvider<T>
- Parameters:
item
- the item to get level- Returns:
- the level of the given item
-
getParent
Description copied from interface:EnhancedHierarchicalDataProvider
Returns the parent of given item.- Specified by:
getParent
in interfaceEnhancedHierarchicalDataProvider<T>
- Parameters:
item
- the item to get parent- Returns:
- the parent of given item or
null
if no parent
-