Package | com.yworks.ui.tree |
Class | public class TreeNode |
Inheritance | TreeNode Object |
Subclasses | TreeGroupNode |
INode
in a data provider created by the class
HierarchyTreeView
Property | Defined By | ||
---|---|---|---|
item : INode [read-only]
The node which is represented by this TreeNode
| TreeNode | ||
textProvider : Function
A function which will return a String representation to
be displayed in the Tree. | TreeNode |
Method | Defined By | ||
---|---|---|---|
Creates an instance with the given node. | TreeNode | ||
toString():String
Returns a String representation of this TreeNode. | TreeNode |
item | property |
item:INode
[read-only]
The node which is represented by this TreeNode
public function get item():INode
textProvider | property |
textProvider:Function
A function which will return a String
representation to
be displayed in the Tree
.
It has the signature
function( item:Object ):Stringand will get the current
TreeNode
as item. The wrapped
INode
can then be accessed by item.item
.
public function get textProvider():Function
public function set textProvider(value:Function):void
TreeNode | () | Constructor |
public function TreeNode(item:INode, textProvider:Function = null)
Creates an instance with the given node.
Parametersitem:INode — The node which is represented by this TreeNode
| |
textProvider:Function (default = null ) — A textProvider to which toString() will delegate.
|
toString | () | method |
public function toString():String
Returns a String
representation of this TreeNode
.
If a textProvider
is set, this method will delegate to it,
otherwise it returns the item
's String
representation.
String — A String representation of this TreeNode
|