Interface TreeTableItems<I>

Type Parameters:
I - row item type
All Superinterfaces:
DataUnit, TableItems<I>, TableItems.Ordered<I>, TableItems.Sortable<I>
All Known Implementing Classes:
ContainerTreeTableItems, EmptyTreeTableItems

public interface TreeTableItems<I> extends TableItems.Sortable<I>
A common interface for providing data for TreeTable component.
  • Method Details

    • getHierarchyPropertyName

      String getHierarchyPropertyName()
      Property of entity which forms the hierarchy
    • getRootItemIds

      Collection<?> getRootItemIds()
      Identifiers of all root items
    • getParent

      @Nullable Object getParent(Object itemId)
      Get parent ID for item with the given ID
    • getChildren

      Collection<?> getChildren(Object itemId)
      Get children IDs for item with the given ID
    • isRoot

      boolean isRoot(Object itemId)
      True if item with the given ID is a root item
    • hasChildren

      boolean hasChildren(Object itemId)
      True if item with the given ID has children