Module io.github.mmm.ui.api.data
Package io.github.mmm.ui.api.widget.data
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
-
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 returnnull
here and have to acceptnull
as argument togetChildren(Object)
to get the top-level nodes that will be displayed as children of a virtual and invisible root node.
-
getChildren
- Parameters:
node
- the tree node to expand and get the children of.- Returns:
- the children of the given
node
. Should beCollections.emptyList()
in case the given node is a leaf and has no children.
-
setParent
-