Packageimpression.events
Classpublic class TreeNodeDrawEvent
InheritanceTreeNodeDrawEvent Inheritance flash.events.Event

The TreeNode object dispatches a TreeNodeDrawEvent object when the node is drawn.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Public Constants
 ConstantDefined 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
Property Detail
backgroundObjectproperty
backgroundObject:DisplayObject  [read-only]

The DisplayObject used as the node's background, if present.


Implementation
    public function get backgroundObject():DisplayObject
iconObjectproperty 
iconObject:DisplayObject  [read-only]

The DisplayObject used as the node's icon, if present.


Implementation
    public function get iconObject():DisplayObject
nodeproperty 
node:TreeNode  [read-only]

The node associated with the event.


Implementation
    public function get node():TreeNode
textObjectproperty 
textObject:TextField  [read-only]

The TextField used to display the node's text.


Implementation
    public function get textObject():TextField
Constructor Detail
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.

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.
 
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.
Method Detail
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.

Returns
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]

Returns
String — A string containing all the properties of the TreeNodeDrawEvent object.
Constant Detail
AFTER_REDRAWConstant
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:

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.
nodeThe node associated with the event.
backgroundObjectThe DisplayObject used as the node's background, if present.
iconObjectThe DisplayObject used as the node's icon, if present.
textObjectThe TextField used to display the node's text.