Package | twaver.controls |
Class | public class TreeData |
Inheritance | TreeData ![]() |
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.
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
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 |
children | property |
children:ArrayCollection
[read-only] Get children tree node data as a collection.
public function get children():ArrayCollection
data | property |
parent | property |
parent:TreeData
[read-only] Get parent tree node data.
public function get parent():TreeData
tree | property |
TreeData | () | Constructor |
public function TreeData(tree:Tree, data:IData, parent:TreeData)
Constructor of tree node data.
Parameterstree:Tree — tree component.
| |
data:IData — twaver data of this tree node.
| |
parent:TreeData — parent tree node data.
|
getStyle | () | method |
public function getStyle(styleProp:String):*
Get style property with specified style property name.
Parameters
styleProp:String — style property name.
|
* — 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.
ReturnsString — a string represent current tree node data.
|