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 property foregroundColor
foregroundColor as Color = null
Optional foreground color used for both the icon and the label.
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 statusColor
statusColor as Color = null
Optional status indicator painted at the right of the row.
public property text
text as String
Display text shown in the tree row.
public property trailingText
trailingText as String = ""
Optional muted text painted immediately before the status indicator.
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.