| Package | nl.flexperiments.events |
| Class | public class FlpTreeEvent |
| Inheritance | FlpTreeEvent flash.events.Event |
| Property | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
FlpTreeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, data:Object = null)
Constructor for FlpTreeEvent
| FlpTreeEvent | ||
| CLOSE | property |
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
| data | property |
public var data:ObjectHolds information about the event
| ITEM_DOUBLE_CLICK | property |
public static var ITEM_DOUBLE_CLICK:String = "itemDoubleClick"Dispatched when a user double clicks on an item
| NODEDRAGDROP | property |
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
| OPEN | property |
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
| SELECTEDNODECHANGE | property |
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
| FlpTreeEvent | () | constructor |
public function FlpTreeEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, data:Object = null)Constructor for FlpTreeEvent
Parameterstype: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) |