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:
  • Constructor Details

  • Method Details

    • getTreeDataGridSource

      public TreeDataGridItems<T> getTreeDataGridSource()
    • getChildCount

      public int getChildCount(com.vaadin.data.provider.HierarchicalQuery<T,com.vaadin.server.SerializablePredicate<T>> query)
      Specified by:
      getChildCount in interface com.vaadin.data.provider.HierarchicalDataProvider<T,com.vaadin.server.SerializablePredicate<T>>
    • fetchChildren

      public Stream<T> fetchChildren(com.vaadin.data.provider.HierarchicalQuery<T,com.vaadin.server.SerializablePredicate<T>> query)
      Specified by:
      fetchChildren in interface com.vaadin.data.provider.HierarchicalDataProvider<T,com.vaadin.server.SerializablePredicate<T>>
    • hasChildren

      public boolean hasChildren(T item)
      Specified by:
      hasChildren in interface com.vaadin.data.provider.HierarchicalDataProvider<T,com.vaadin.server.SerializablePredicate<T>>
    • getLevel

      public int getLevel(T item)
      Description copied from interface: EnhancedHierarchicalDataProvider
      Returns the hierarchy level of an item.
      Specified by:
      getLevel in interface EnhancedHierarchicalDataProvider<T>
      Parameters:
      item - the item to get level
      Returns:
      the level of the given item
    • getParent

      @Nullable public T getParent(T item)
      Description copied from interface: EnhancedHierarchicalDataProvider
      Returns the parent of given item.
      Specified by:
      getParent in interface EnhancedHierarchicalDataProvider<T>
      Parameters:
      item - the item to get parent
      Returns:
      the parent of given item or null if no parent