Package io.jmix.ui.component.tree
Class TreeDataProvider<T>
java.lang.Object
com.vaadin.data.provider.AbstractDataProvider<T,com.vaadin.server.SerializablePredicate<T>>
io.jmix.ui.component.tree.TreeDataProvider<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>> EnhancedTreeDataProvider<T>
,Serializable
public class TreeDataProvider<T>
extends com.vaadin.data.provider.AbstractDataProvider<T,com.vaadin.server.SerializablePredicate<T>>
implements com.vaadin.data.provider.HierarchicalDataProvider<T,com.vaadin.server.SerializablePredicate<T>>, EnhancedTreeDataProvider<T>
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected TreeSourceEventsDelegate<T>
protected Subscription
protected Subscription
protected Subscription
protected Subscription
-
Constructor Summary
ConstructorDescriptionTreeDataProvider
(TreeItems<T> treeItems, TreeSourceEventsDelegate<T> eventsDelegate) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
protected void
fetchChildren
(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) getItems()
boolean
hasChildren
(T item) boolean
int
void
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, refreshAll, refreshItem, withConfigurableFilter, withConfigurableFilter, withConvertedFilter
Methods inherited from interface com.vaadin.data.provider.HierarchicalDataProvider
fetch
-
Field Details
-
treeItems
-
eventsDelegate
-
itemSetChangeSubscription
-
valueChangeSubscription
-
stateChangeSubscription
-
selectedItemChangeSubscription
-
-
Constructor Details
-
TreeDataProvider
-
-
Method Details
-
unbind
public void unbind() -
getTreeItems
-
getId
-
isInMemory
public boolean isInMemory() -
size
-
getChildCount
-
fetchChildren
-
hasChildren
-
getItems
- Specified by:
getItems
in interfaceEnhancedTreeDataProvider<T>
-
getParent
- Specified by:
getParent
in interfaceEnhancedTreeDataProvider<T>
-
datasourceItemSetChanged
-
datasourceValueChanged
-
datasourceStateChanged
-
datasourceSelectedItemChanged
-