Packagenl.flexperiments.tree
Classpublic class Node
InheritanceNode Inheritance mx.containers.VBox
SubclassesFlpTree

The node class is the base of the tree, a node is an item in the tree, with it's children



Public Properties
 PropertyDefined by
  data : Object
[write-only]
Node
  dragEnabled : Boolean
Makes dragrules per node possible.
Node
  itemIcon : *
[read-only] You can call this function from your renderer to get the correct icon
Node
  itemLabel : String
[read-only] You can call this function from your renderer to get the correct label
Node
  __itemRenderer : *
Node
  open : Boolean
Node
  parentNode : Node
Returns the parent node
Node
  selected : Boolean
Selects or deselects the node.
Node
  tree : FlpTree
Node
Protected Properties
 PropertyDefined by
  children : Array
Node
Public Methods
 MethodDefined by
  
Node(fntree:FlpTree = null)
Node
  
dispose():void
Node
  
refresh(recursive:Boolean = true):void
Node
Protected Methods
 MethodDefined by
  
_dragBoxEnterHandler(event:DragEvent):void
Gets called when dragging over the childrenBox
Node
  
_dragEnterHandler(event:DragEvent):void
This method is called when the user drags a node over (the renderer of) this node
Node
  
addNode(node:Node, index:Number = -1):void
Node
  
Node
  
Node
  
Node
  
forceCommit():void
Node
  
removeNode(index:Number):void
Node
Property detail
childrenproperty
protected var children:Array
dataproperty 
data:Object  [write-only]Implementation
    public function set data(value:Object):void
dragEnabledproperty 
dragEnabled:Boolean  [read-write]

Makes dragrules per node possible. Set this to false in the itemrenderer to prevent this specific node being dragged.

Implementation
    public function get dragEnabled():Boolean
    public function set dragEnabled(value:Boolean):void
itemIconproperty 
itemIcon:*  [read-only]

You can call this function from your renderer to get the correct icon

Implementation
    public function get itemIcon():*
itemLabelproperty 
itemLabel:String  [read-only]

You can call this function from your renderer to get the correct label

Implementation
    public function get itemLabel():String
__itemRendererproperty 
public var __itemRenderer:*
openproperty 
open:Boolean  [read-write]

This property can be used as the source for data binding.

Implementation
    public function get open():Boolean
    public function set open(value:Boolean):void
parentNodeproperty 
parentNode:Node  [read-write]

Returns the parent node

Implementation
    public function get parentNode():Node
    public function set parentNode(value:Node):void
selectedproperty 
selected:Boolean  [read-write]

Selects or deselects the node.

Implementation
    public function get selected():Boolean
    public function set selected(value:Boolean):void
treeproperty 
public var tree:FlpTree
Constructor detail
Node()constructor
public function Node(fntree:FlpTree = null)Parameters
fntree:FlpTree (default = null)
Method detail
_dragBoxEnterHandler()method
protected function _dragBoxEnterHandler(event:DragEvent):void

Gets called when dragging over the childrenBox

Parameters
event:DragEvent
_dragEnterHandler()method 
protected function _dragEnterHandler(event:DragEvent):void

This method is called when the user drags a node over (the renderer of) this node

Parameters
event:DragEvent
addNode()method 
protected function addNode(node:Node, index:Number = -1):voidParameters
node:Node
 
index:Number (default = -1)
commitProperties()method 
protected override function commitProperties():void
createChildren()method 
protected override function createChildren():void
dispose()method 
public function dispose():void
disposeChildren()method 
protected function disposeChildren():void
forceCommit()method 
protected function forceCommit():void
refresh()method 
public function refresh(recursive:Boolean = true):voidParameters
recursive:Boolean (default = true)
removeNode()method 
protected function removeNode(index:Number):voidParameters
index:Number