Packagenl.flexperiments.tree
Classpublic class FlpTreeItemRenderer
InheritanceFlpTreeItemRenderer Inheritance mx.core.LayoutContainer

This class acts as base class for item renderers. All itemrenderers used for the tree MUST extend this class. It supplies some basic functionality and communication with the tree When using a custom renderer, you'll have to handle the open / close and select / deselect events, giving you the freedom to fully customize the tree. Also, when you set the label in your renderer, don't forget to set node.label to the label, so you access it later more easily The styles you defined for the FlpTree {} in your css class are accessible by calling tree.getStyle("stylename");



Public Properties
 PropertyDefined by
  iconField : String
FlpTreeItemRenderer
  iconFunction : Function
FlpTreeItemRenderer
  labelField : String
FlpTreeItemRenderer
  labelFunction : Function
FlpTreeItemRenderer
  node : Node
FlpTreeItemRenderer
  open : Boolean
FlpTreeItemRenderer
  parentNode : Node
[read-only]
FlpTreeItemRenderer
  selected : Boolean
FlpTreeItemRenderer
  tree : FlpTree
FlpTreeItemRenderer
Public Methods
 MethodDefined by
  
FlpTreeItemRenderer
  
closeNode():void
Set the open value of the node to false
FlpTreeItemRenderer
  
openNode():void
Set the open value of the node to true
FlpTreeItemRenderer
Property detail
iconFieldproperty
iconField:String  [read-write]Implementation
    public function get iconField():String
    public function set iconField(value:String):void
iconFunctionproperty 
iconFunction:Function  [read-write]Implementation
    public function get iconFunction():Function
    public function set iconFunction(value:Function):void
labelFieldproperty 
labelField:String  [read-write]Implementation
    public function get labelField():String
    public function set labelField(value:String):void
labelFunctionproperty 
labelFunction:Function  [read-write]Implementation
    public function get labelFunction():Function
    public function set labelFunction(value:Function):void
nodeproperty 
node:Node  [read-write]Implementation
    public function get node():Node
    public function set node(value:Node):void
openproperty 
open:Boolean  [read-write]Implementation
    public function get open():Boolean
    public function set open(value:Boolean):void
parentNodeproperty 
parentNode:Node  [read-only]Implementation
    public function get parentNode():Node
selectedproperty 
selected:Boolean  [read-write]Implementation
    public function get selected():Boolean
    public function set selected(value:Boolean):void
treeproperty 
tree:FlpTree  [read-write]Implementation
    public function get tree():FlpTree
    public function set tree(value:FlpTree):void
Constructor detail
FlpTreeItemRenderer()constructor
public function FlpTreeItemRenderer()
Method detail
closeNode()method
public function closeNode():void

Set the open value of the node to false

openNode()method 
public function openNode():void

Set the open value of the node to true