TreeNode
classin packageklyn.gui.windows
public class TreeNode:
TreeNode

Node used by TreeModel and TreeView.

root = TreeNode("Database", "DB", "root")
root.add(TreeNode("Users", "T", "table"))
Properties
Modifier and Type Member Description
public property children
children as ArrayList<TreeNode>
Child nodes.
public readonly property hasChildren
hasChildren as Boolean:
Whether this node owns at least one child.
public property icon
icon as String
Short optional icon text displayed before text.
public property isExpanded
isExpanded as Boolean
Whether child nodes are visible.
public property kind
kind as String
Optional application-defined kind.
public property text
text as String
Display text shown in the tree row.
Constructors
Modifier and Type Member Description
public TreeNode
TreeNode(text as String, icon as String = "", kind as String = ""):
Creates a tree node.
Methods
Modifier and Type Member Description
public add
add(child as TreeNode) as TreeNode:
Appends a child node and returns this.