Uses of Class
com.vaadin.flow.data.provider.hierarchy.TreeData
-
Uses of TreeData in com.vaadin.flow.data.provider.hierarchy
Methods in com.vaadin.flow.data.provider.hierarchy that return TreeDataModifier and TypeMethodDescriptionAdds a data item as a child of
parent
.TreeData.addItems
(Collection<T> rootItems, ValueProvider<T, Collection<T>> childItemProvider) Adds the given items as root items and uses the given value provider to recursively populate children of the root items.
Adds the given items as root items and uses the given value provider to recursively populate children of the root items.
TreeData.addItems
(T parent, Collection<T> items) Adds a list of data items as children of
parent
.Adds data items contained in a stream as children of
parent
.Adds a list of data items as children of
parent
.TreeData.addRootItems
(Collection<T> items) Adds the items of the given collection as root items to this structure.
TreeData.addRootItems
(Stream<T> items) Adds the items of the given stream as root items to this structure.
TreeData.addRootItems
(T... items) Adds the items as root items to this structure.
TreeData.clear()
Clear all items from this structure.
HasHierarchicalDataProvider.getTreeData()
Gets the backing
TreeData
instance of the data provider, if the data provider is aTreeDataProvider
.TreeDataProvider.getTreeData()
Return the underlying hierarchical data of this provider.
TreeData.removeItem
(T item) Remove a given item from this structure.
Methods in com.vaadin.flow.data.provider.hierarchy with parameters of type TreeDataModifier and TypeMethodDescriptiondefault void
HasHierarchicalDataProvider.setTreeData
(TreeData<T> treeData) Sets a new
TreeDataProvider
wrapping the givenTreeData
.Constructors in com.vaadin.flow.data.provider.hierarchy with parameters of type TreeDataModifierConstructorDescriptionTreeDataProvider
(TreeData<T> treeData) Constructs a new TreeDataProvider.