HierarchyNode

public interface HierarchyNode<T extends Object>

Node definition for general data tree.

Functions

Link copied to clipboard
public abstract Sequence<HierarchyNode<T>> getChildren()

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

Link copied to clipboard
public abstract String getLabel()

Label for the node, user visible value.

Link copied to clipboard
public abstract T getNodeId()

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

Link copied to clipboard
public abstract Boolean isLeaf()

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

Link copied to clipboard
public final HierarchyNode<T> lookup<T extends Any>(T nodeId)

Search the hierarchy for the node with the given nodeId.