Packagetwaver.controls
Classpublic class TreeData
InheritanceTreeData Inheritance Object

This class wraps a tree node information. As the delegator of twaver IData data, this class contains twaver data object and works more close to tree component. It contains parent tree node data, children tree nodes data, reference of tree, and style properties.



Public Properties
 PropertyDefined By
  children : ArrayCollection
[read-only] Get children tree node data as a collection.
TreeData
  data : IData
[read-only]
TreeData
  parent : TreeData
[read-only] Get parent tree node data.
TreeData
  tree : Tree
[read-only] Get the tree component
TreeData
Public Methods
 MethodDefined By
  
TreeData(tree:Tree, data:IData, parent:TreeData)
Constructor of tree node data.
TreeData
  
getStyle(styleProp:String):*
Get style property with specified style property name.
TreeData
  
toString():String
If data box (the root tree node of this tree), return dataBox.toString; otherwise, return data.toString.
TreeData
Property Detail
childrenproperty
children:ArrayCollection  [read-only]

Get children tree node data as a collection.


Implementation
    public function get children():ArrayCollection
dataproperty 
data:IData  [read-only]


Implementation
    public function get data():IData
parentproperty 
parent:TreeData  [read-only]

Get parent tree node data.


Implementation
    public function get parent():TreeData
treeproperty 
tree:Tree  [read-only]

Get the tree component


Implementation
    public function get tree():Tree
Constructor Detail
TreeData()Constructor
public function TreeData(tree:Tree, data:IData, parent:TreeData)

Constructor of tree node data.

Parameters
tree:Tree — tree component.
 
data:IData — twaver data of this tree node.
 
parent:TreeData — parent tree node data.
Method Detail
getStyle()method
public function getStyle(styleProp:String):*

Get style property with specified style property name.

Parameters

styleProp:String — style property name.

Returns
* — value of this style property.
toString()method 
public function toString():String

If data box (the root tree node of this tree), return dataBox.toString; otherwise, return data.toString.

Returns
String — a string represent current tree node data.