Package | impression.events |
Class | public class TreeNodeDrawEvent |
Inheritance | TreeNodeDrawEvent ![]() |
Property | Defined By | ||
---|---|---|---|
backgroundObject : DisplayObject [read-only]
The DisplayObject used as the node's background, if present. | TreeNodeDrawEvent | ||
iconObject : DisplayObject [read-only]
The DisplayObject used as the node's icon, if present. | TreeNodeDrawEvent | ||
node : TreeNode [read-only]
The node associated with the event. | TreeNodeDrawEvent | ||
textObject : TextField [read-only]
The TextField used to display the node's text. | TreeNodeDrawEvent |
Method | Defined By | ||
---|---|---|---|
TreeNodeDrawEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, node:TreeNode = null, backgroundObject:DisplayObject = null, iconObject:DisplayObject = null, textObject:TextField = null)
Creates a new instance of a TreeNodeDrawEvent object. | TreeNodeDrawEvent | ||
clone():Event [override]
Duplicates an instance of the event object. | TreeNodeDrawEvent | ||
toString():String [override]
Returns a string containing all the properties of the TreeNodeDrawEvent object. | TreeNodeDrawEvent |
Constant | Defined By | ||
---|---|---|---|
AFTER_REDRAW : String = afterRedraw [static]
The TreeNodeDrawEvent.AFTER_REDRAW constant defines the value of the
type property of an TreeNode draw event object. | TreeNodeDrawEvent |
backgroundObject | property |
backgroundObject:DisplayObject
[read-only] The DisplayObject used as the node's background, if present.
public function get backgroundObject():DisplayObject
iconObject | property |
iconObject:DisplayObject
[read-only] The DisplayObject used as the node's icon, if present.
public function get iconObject():DisplayObject
node | property |
node:TreeNode
[read-only] The node associated with the event.
public function get node():TreeNode
textObject | property |
textObject:TextField
[read-only] The TextField used to display the node's text.
public function get textObject():TextField
TreeNodeDrawEvent | () | Constructor |
public function TreeNodeDrawEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, node:TreeNode = null, backgroundObject:DisplayObject = null, iconObject:DisplayObject = null, textObject:TextField = null)
Creates a new instance of a TreeNodeDrawEvent 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.
| |
node:TreeNode (default = null ) — The node associated with the event. Event listeners can access this information through the node property.
| |
backgroundObject:DisplayObject (default = null ) — The DisplayObject used as the node's background, if present. Event listeners can access this information through the backgroundObject property.
| |
iconObject:DisplayObject (default = null ) — The DisplayObject used as the node's icon, if present. Event listeners can access this information through the iconObject property.
| |
textObject:TextField (default = null ) — The TextField used to display the node's text. Event listeners can access this information through the textObject property.
|
clone | () | method |
override public function clone():Event
Duplicates an instance of the event object.
Returns a new TreeNodeDrawEvent object that is a copy of the original instance of the TreeNodeDrawEvent 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 TreeNodeDrawEvent object that is identical to the original.
|
toString | () | method |
override public function toString():String
Returns a string containing all the properties of the TreeNodeDrawEvent object. The string is in the following format:
[TreeNodeDrawEvent type=value bubbles=value cancelable=value eventPhase=value node=value]
String — A string containing all the properties of the TreeNodeDrawEvent object.
|
AFTER_REDRAW | Constant |
public static const AFTER_REDRAW:String = afterRedraw
The TreeNodeDrawEvent.AFTER_REDRAW constant defines the value of the type property of an TreeNode draw 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. |
node | The node associated with the event. |
backgroundObject | The DisplayObject used as the node's background, if present. |
iconObject | The DisplayObject used as the node's icon, if present. |
textObject | The TextField used to display the node's text. |