public class TreeNode:
Node used by TreeModel and TreeView.
root = TreeNode("Database", "DB", "root")
root.add(TreeNode("Users", "T", "table"))| Modifier and Type | Member | Description |
|---|---|---|
| public property | children | Child nodes. |
| public property | foregroundColorforegroundColor as Color = null |
Optional foreground color used for both the icon and the label. |
| public readonly property | hasChildrenhasChildren as Boolean: |
Whether this node owns at least one child. |
| public property | iconicon as String |
Short optional icon text displayed before text. |
| public property | isExpandedisExpanded as Boolean |
Whether child nodes are visible. |
| public property | kindkind as String |
Optional application-defined kind. |
| public property | statusColorstatusColor as Color = null |
Optional status indicator painted at the right of the row. |
| public property | texttext as String |
Display text shown in the tree row. |
| public property | trailingTexttrailingText as String = "" |
Optional muted text painted immediately before the status indicator. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | TreeNode | Creates a tree node. |