Packageimpression.events
Classpublic class TreeViewRequestEvent
InheritanceTreeViewRequestEvent Inheritance flash.events.Event
Subclasses LessonMapViewerRequestEvent

The TreeView object dispatches a TreeViewRequestEvent object before a selection change occurs.



Public Properties
 PropertyDefined By
  newNode : TreeNode
The new node to select.
TreeViewRequestEvent
  oldNode : TreeNode
[read-only] The currently selected node.
TreeViewRequestEvent
  reason : String
[read-only] Indicates why the event occurred.
TreeViewRequestEvent
Public Methods
 MethodDefined By
  
TreeViewRequestEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, reason:String = null, oldNode:TreeNode = null, newNode:TreeNode = null)
Creates a new instance of a TreeViewRequestEvent object.
TreeViewRequestEvent
  
clone():Event
[override] Duplicates an instance of the event object.
TreeViewRequestEvent
  
toString():String
[override] Returns a string containing all the properties of the TreeViewRequestEvent object.
TreeViewRequestEvent
Public Constants
 ConstantDefined By
  SELECT_REQUEST : String = treeviewSelectRequest
[static] The TreeViewRequestEvent.SELECT_REQUEST constant defines the value of the type property of a TreeView event object.
TreeViewRequestEvent
Property Detail
newNodeproperty
newNode:TreeNode

The new node to select.


Implementation
    public function get newNode():TreeNode
    public function set newNode(value:TreeNode):void
oldNodeproperty 
oldNode:TreeNode  [read-only]

The currently selected node.


Implementation
    public function get oldNode():TreeNode
reasonproperty 
reason:String  [read-only]

Indicates why the event occurred. When dispatched by the TreeView, this value will be one of the TreeViewEventReasons constant values.


Implementation
    public function get reason():String

See also

Constructor Detail
TreeViewRequestEvent()Constructor
public function TreeViewRequestEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, reason:String = null, oldNode:TreeNode = null, newNode:TreeNode = null)

Creates a new instance of a TreeViewRequestEvent object.

Parameters
type:String — The type of the event. Event listeners can access this information through the inherited type property.
 
bubbles:Boolean (default = false) — Determines whether the event object participates in the bubbling phase of the event flow. Event listeners can access this information through the inheritied bubbles property.
 
cancelable:Boolean (default = false) — Determines whether the event object can be canceled. Event listeners can access this information through the inherited cancelable property.
 
reason:String (default = null) — Indicates why the event occurred. Event listeners can access this information through the reason property.
 
oldNode:TreeNode (default = null) — The currently selected node. Event listeners can access this information through the oldNode property.
 
newNode:TreeNode (default = null) — The new node to select. Event listeners can access this information through the newNode property.
Method Detail
clone()method
override public function clone():Event

Duplicates an instance of the event object.

Returns a new TreeViewRequestEvent object that is a copy of the original instance of the TreeViewRequestEvent object. You do not normally call clone(); the EventDispatcher class calls it automatically when you redispatch an event--that is, when you call dispatchEvent(event) from a handler that is handling event.

Returns
Event — A new TreeViewRequestEvent object that is identical to the original.
toString()method 
override public function toString():String

Returns a string containing all the properties of the TreeViewRequestEvent object. The string is in the following format:

[TreeViewRequestEvent type=value bubbles=value cancelable=value eventPhase=value reason=value oldNode=value newNode=value]

Returns
String — A string containing all the properties of the TreeViewRequestEvent object.
Constant Detail
SELECT_REQUESTConstant
public static const SELECT_REQUEST:String = treeviewSelectRequest

The TreeViewRequestEvent.SELECT_REQUEST constant defines the value of the type property of a TreeView event object. This event has the following properties:

PropertyValue
bubblesfalse
cancelablefalse; there is no default behavior to cancel.
currentTargetThe object that is actively processing the Event object with an event listener.
targetThe object that raised the event.
reason
oldNode
newNode