Interface EnhancedHierarchicalDataProvider<T>

Type Parameters:
T - data type
All Known Implementing Classes:
HierarchicalDataGridDataProvider

public interface EnhancedHierarchicalDataProvider<T>
Interface defining methods for enhancing HierarchicalDataProvider behavior.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getLevel(T item)
    Returns the hierarchy level of an item.
    getParent(T item)
    Returns the parent of given item.
  • Method Details

    • getLevel

      int getLevel(T item)
      Returns the hierarchy level of an item.
      Parameters:
      item - the item to get level
      Returns:
      the level of the given item
    • getParent

      @Nullable T getParent(T item)
      Returns the parent of given item.
      Parameters:
      item - the item to get parent
      Returns:
      the parent of given item or null if no parent