Packagefeathers.extensions.tree.events
Classpublic class TreeEvent
InheritanceTreeEvent Inheritance Event Inheritance Object

A event dispatched when a tree row changes or is selected.

See also

How to use Tree with mxml
feathers.extensions.tree.Tree


Public Properties
 PropertyDefined By
 Inheritedbubbles : Boolean
[read-only] Indicates if event will bubble.
Event
  CHANGE : String = change
[static] Dispatched when a tree item changes.
TreeEvent
 InheritedcurrentTarget : EventDispatcher
[read-only] The object the event is currently bubbling at.
Event
  data : Object
[override] [read-only] The tree dataProvider item corresponding to this item renderer.
TreeEvent
  index : Vector.<int>
[read-only] The index of tree item.
TreeEvent
  isDirectory : Boolean
[read-only] Indicates whether the item is a branch.
TreeEvent
  item : Object
[read-only] The item renderer.
TreeEvent
  SELECT : String = select
[static] Dispatched when a tree item selected.
TreeEvent
 Inheritedtarget : EventDispatcher
[read-only] The object that dispatched the event.
Event
 Inheritedtype : String
[read-only] A string that identifies the event.
Event
Public Methods
 MethodDefined By
  
TreeEvent(type:String, index:Vector.<int>, isDirectory:Boolean, data:Object, item:Object, bubbles:Boolean = false, cancelable:Boolean = false)
TreeEvent
 Inherited
Prevents any other listeners from receiving the event.
Event
 Inherited
Prevents listeners at the next bubble stage from receiving the event.
Event
 Inherited
toString():String
Returns a description of the event, containing type and bubble information.
Event
Public Constants
 ConstantDefined By
 InheritedADDED : String = added
[static] Event type for a display object that is added to a parent.
Event
 InheritedADDED_TO_STAGE : String = addedToStage
[static] Event type for a display object that is added to the stage
Event
 InheritedCANCEL : String = cancel
[static] An event type to be utilized in custom events.
Event
 InheritedCHANGE : String = change
[static] An event type to be utilized in custom events.
Event
 InheritedCLOSE : String = close
[static] An event type to be utilized in custom events.
Event
 InheritedCOMPLETE : String = complete
[static] Event type that may be used whenever something finishes.
Event
 InheritedCONTEXT3D_CREATE : String = context3DCreate
[static] Event type for a (re)created stage3D rendering context.
Event
 InheritedENTER_FRAME : String = enterFrame
[static] Event type for a display object that is entering a new frame.
Event
 InheritedFATAL_ERROR : String = fatalError
[static] Event type that is dispatched by the Starling instance when it encounters a problem from which it cannot recover, e.g.
Event
 InheritedIO_ERROR : String = ioError
[static] Event type that is dispatched by the AssetManager when a file/url cannot be loaded.
Event
 InheritedOPEN : String = open
[static] An event type to be utilized in custom events.
Event
 InheritedPARSE_ERROR : String = parseError
[static] Event type that is dispatched by the AssetManager when an xml or json file couldn't be parsed.
Event
 InheritedREADY : String = ready
[static] An event type to be utilized in custom events.
Event
 InheritedREMOVED : String = removed
[static] Event type for a display object that is removed from its parent.
Event
 InheritedREMOVED_FROM_STAGE : String = removedFromStage
[static] Event type for a display object that is removed from the stage.
Event
 InheritedREMOVE_FROM_JUGGLER : String = removeFromJuggler
[static] Event type for an animated object that requests to be removed from the juggler.
Event
 InheritedRENDER : String = render
[static] Event type that is dispatched by the Starling instance directly before rendering.
Event
 InheritedRESIZE : String = resize
[static] Event type for a resized Flash Player.
Event
 InheritedROOT_CREATED : String = rootCreated
[static] Event type that indicates that the root DisplayObject has been created.
Event
 InheritedSCROLL : String = scroll
[static] An event type to be utilized in custom events.
Event
 InheritedSECURITY_ERROR : String = securityError
[static] Event type that is dispatched by the AssetManager when a file/url cannot be loaded.
Event
 InheritedSELECT : String = select
[static] An event type to be utilized in custom events.
Event
 InheritedTEXTURES_RESTORED : String = texturesRestored
[static] Event type that is dispatched by the AssetManager after a context loss.
Event
 InheritedTRIGGERED : String = triggered
[static] Event type for a triggered button.
Event
 InheritedUPDATE : String = update
[static] An event type to be utilized in custom events.
Event
Property Detail
CHANGEproperty
public static var CHANGE:String = change

Dispatched when a tree item changes.

dataproperty 
data:Object  [read-only] [override]

The tree dataProvider item corresponding to this item renderer.


Implementation
    public function get data():Object
indexproperty 
index:Vector.<int>  [read-only]

The index of tree item.


Implementation
    public function get index():Vector.<int>
isDirectoryproperty 
isDirectory:Boolean  [read-only]

Indicates whether the item is a branch.


Implementation
    public function get isDirectory():Boolean
itemproperty 
item:Object  [read-only]

The item renderer.


Implementation
    public function get item():Object
SELECTproperty 
public static var SELECT:String = select

Dispatched when a tree item selected.

Constructor Detail
TreeEvent()Constructor
public function TreeEvent(type:String, index:Vector.<int>, isDirectory:Boolean, data:Object, item:Object, bubbles:Boolean = false, cancelable:Boolean = false)



Parameters
type:String
 
index:Vector.<int>
 
isDirectory:Boolean
 
data:Object
 
item:Object
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)