HierarchyNode

interface HierarchyNode<T>

Node definition for general data tree.

Properties

Link copied to clipboard

Immutable list of child nodes, if it is empty then this node is a leaf node.

Link copied to clipboard
abstract val isLeaf: Boolean

Utility method for checking if this node has any children. Only leaf nodes are valid selectable choices.

Link copied to clipboard
abstract val label: String

Label for the node, user visible value.

Link copied to clipboard
abstract val nodeId: T

Unique identifier of this node, internal value posted to server.

Functions

Link copied to clipboard
fun <T> HierarchyNode<T>.lookup(nodeId: T): HierarchyNode<T>?

Search the hierarchy for the node with the given nodeId.