Interface UiAbstractDataTree.TreeModel<D>

Type Parameters:
D - type of the tree nodes as data model.
Enclosing interface:
UiAbstractDataTree<R>

public static interface UiAbstractDataTree.TreeModel<D>
Model that adapts the tree structure.
  • Method Summary

    Modifier and Type
    Method
    Description
    getChildren(D node)
     
     
    default void
    setParent(D node, D parent)
     
  • Method Details

    • getRoot

      D getRoot()
      Returns:
      the root node of this UiAbstractDataTree.TreeModel. In case you do not want to have a single root visible, you may return null here and have to accept null as argument to getChildren(Object) to get the top-level nodes that will be displayed as children of a virtual and invisible root node.
    • getChildren

      List<D> getChildren(D node)
      Parameters:
      node - the tree node to expand and get the children of.
      Returns:
      the children of the given node. Should be Collections.emptyList() in case the given node is a leaf and has no children.
    • setParent

      default void setParent(D node, D parent)