Uses of Class
com.vaadin.flow.data.provider.hierarchy.TreeData
Packages that use 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 ofparent.TreeData.addItems(Collection<T> rootItems, com.vaadin.flow.function.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.TreeData.addItems(Stream<T> rootItems, com.vaadin.flow.function.ValueProvider<T, Stream<T>> childItemProvider) 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 ofparent.Adds data items contained in a stream as children ofparent.Adds a list of data items as children ofparent.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 backingTreeDatainstance 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 voidHasHierarchicalDataProvider.setTreeData(TreeData<T> treeData) Sets a newTreeDataProviderwrapping the givenTreeData.Constructors in com.vaadin.flow.data.provider.hierarchy with parameters of type TreeDataModifierConstructorDescriptionTreeDataProvider(TreeData<T> treeData) Constructs a new TreeDataProvider.TreeDataProvider(TreeData<T> treeData, HierarchicalDataProvider.HierarchyFormat hierarchyFormat) Creates a new TreeDataProvider and configures it to return the hierarchical data in the specified format:HierarchicalDataProvider.HierarchyFormat.NESTEDorHierarchicalDataProvider.HierarchyFormat.FLATTENED.