Packagenl.flexperiments.events
Classpublic class FlpTreeEvent
InheritanceFlpTreeEvent Inheritance flash.events.Event

FlpTreeEvent holds all the events that the FlpTree can fire. We use a custom event class so we can provide extra information about the event through the data property



Public Properties
 PropertyDefined by
  CLOSE : String = "close"
[static] The close Event is called each time the user closes a node.
FlpTreeEvent
  data : Object
Holds information about the event
FlpTreeEvent
  ITEM_DOUBLE_CLICK : String = "itemDoubleClick"
[static] Dispatched when a user double clicks on an item
FlpTreeEvent
  NODEDRAGDROP : String = "nodeDragDrop"
[static] The open Event is called each time the user drags and drops a node.
FlpTreeEvent
  OPEN : String = "open"
[static] The open Event is called each time the user opens a node.
FlpTreeEvent
  SELECTEDNODECHANGE : String = "selectedNodeChange"
[static] The open Event is called each time the user selects a node.
FlpTreeEvent
Public Methods
 MethodDefined by
  
FlpTreeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, data:Object = null)
Constructor for FlpTreeEvent
FlpTreeEvent
Property detail
CLOSEproperty
public static var CLOSE:String = "close"

The close Event is called each time the user closes a node. The user receives the event with the data of the node that's being closed as data property

dataproperty 
public var data:Object

Holds information about the event

ITEM_DOUBLE_CLICKproperty 
public static var ITEM_DOUBLE_CLICK:String = "itemDoubleClick"

Dispatched when a user double clicks on an item

NODEDRAGDROPproperty 
public static var NODEDRAGDROP:String = "nodeDragDrop"

The open Event is called each time the user drags and drops a node. The data property holds the following information: - oldparent The data of the old parent; - oldindex The index of the node before it was dragged; - newparent The data of the new parent; - newindex The new index of the node - item The data of the node that's being dropped

OPENproperty 
public static var OPEN:String = "open"

The open Event is called each time the user opens a node. The user receives the event with the data of the node that's being opened as data property

SELECTEDNODECHANGEproperty 
public static var SELECTEDNODECHANGE:String = "selectedNodeChange"

The open Event is called each time the user selects a node. The user receives the event with the data of the node that's being selected as data property

Constructor detail
FlpTreeEvent()constructor
public function FlpTreeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, data:Object = null)

Constructor for FlpTreeEvent

Parameters
type:String — The type of the event, it can be one of the following: FlpTreeEvent.OPEN, FlpTreeEvent.CLOSE, FlpTreeEvent.SELECTEDNODECHANGE or FlpTreeEvent.DRAGDROP
 
bubbles:Boolean (default = false) — Specifies whether the event can bubble up the display list hierarchy.
 
cancelable:Boolean (default = false) — Specifies whether the behavior associated with the event can be prevented.
 
data:Object (default = null)