Packagecom.yworks.ui.tree
Classpublic class TreeGroupNode
InheritanceTreeGroupNode Inheritance TreeNode Inheritance Object

A tree node represents a group node in a data provider created by the class HierarchyTreeView.

The mx.controls.Tree recognizes this TreeNode as a folder by its children property.



Public Properties
 PropertyDefined By
  children : ArrayCollection
[read-only] A list with this nodes children (as TreeNodes).
TreeGroupNode
 Inheriteditem : INode
[read-only] The node which is represented by this TreeNode
TreeNode
 InheritedtextProvider : Function
A function which will return a String representation to be displayed in the Tree.
TreeNode
Public Methods
 MethodDefined By
  
TreeGroupNode(item:INode, model:INodeHierarchy, textProvider:Function = null)
Creates an instance with the given node.
TreeGroupNode
 Inherited
toString():String
Returns a String representation of this TreeNode.
TreeNode
Property Detail
childrenproperty
children:ArrayCollection  [read-only]

A list with this nodes children (as TreeNodes).


Implementation
    public function get children():ArrayCollection
Constructor Detail
TreeGroupNode()Constructor
public function TreeGroupNode(item:INode, model:INodeHierarchy, textProvider:Function = null)

Creates an instance with the given node. Creates also a valid data provider for its child nodes.

Parameters
item:INode — The node which is represented by this TreeNode
 
model:INodeHierarchy — The INodeHierarchy instance the item belongs to.
 
textProvider:Function (default = null) — A textProvider to which toString() will delegate.