SwatObject
└─SwatTreeNode
└─SwatDataTreeNode
public class SwatDataTreeNode
extends SwatTreeNode
| Field Summary | |
|---|---|
| string | The title of this node. |
| mixed | The value of this node. |
| Fields inherited from Swat.SwatTreeNode | |
|---|---|
| children | |
| Constructor Summary | |
|---|---|
SwatDataTreeNode(mixed value, string title) Creates a new data node. |
|
| Methods inherited from Swat.SwatTreeNode | |
|---|---|
| addChild, addTree, count, current, getChildren, getIndex, getParent, getPath, hasChildren, key, next, rewind, valid | |
public string $title
The title of this node
The title is used for display.
public mixed $value
The value of this node
The value is used for processing. It is either a string or an integer.
public SwatDataTreeNode(mixed value, string title)
Creates a new data node
value - the value of the node. It is either a string or an integer.title - the title of the node.
A tree node containing a value and a title