Package | impression.events |
Class | public class TreeViewRequestEvent |
Inheritance | TreeViewRequestEvent ![]() |
Subclasses | LessonMapViewerRequestEvent |
Property | Defined 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 |
Method | Defined 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 |
Constant | Defined By | ||
---|---|---|---|
SELECT_REQUEST : String = treeviewSelectRequest [static]
The TreeViewRequestEvent.SELECT_REQUEST constant defines the value of the
type property of a TreeView event object. | TreeViewRequestEvent |
newNode | property |
newNode:TreeNode
The new node to select.
public function get newNode():TreeNode
public function set newNode(value:TreeNode):void
oldNode | property |
oldNode:TreeNode
[read-only] The currently selected node.
public function get oldNode():TreeNode
reason | property |
reason:String
[read-only]
Indicates why the event occurred. When dispatched by the TreeView, this value will be one of the
TreeViewEventReasons
constant values.
public function get reason():String
See also
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.
Parameterstype: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.
|
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
.
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]
String — A string containing all the properties of the TreeViewRequestEvent object.
|
SELECT_REQUEST | Constant |
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:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event object with an event listener. |
target | The object that raised the event. |
reason | |
oldNode | |
newNode |