Packageorg.aswing.event
Classpublic class AWEvent
InheritanceAWEvent Inheritance flash.events.Event
SubclassesAttachEvent, ClickCountEvent, ColorChooserEvent, ContainerEvent, DragAndDropEvent, InteractiveEvent, MovedEvent, PopupEvent, PropertyChangeEvent, ResizedEvent, TabCloseEvent, TableCellEditEvent, ToolTipEvent, TreeCellEditEvent, TreeEvent

The Event class is used as the base class for the AsWing Component events.



Public Methods
 MethodDefined by
  
AWEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Create an AWEvent.
AWEvent
  
clone():Event
AWEvent
Public Constants
 ConstantDefined by
  ACT : String = "act"
[static] The AWEvent.ACT constant defines the value of the type property of the event object for a act event.
AWEvent
  FOCUS_GAINED : String = "focusGained"
[static] The AWEvent.FOCUS_GAINED constant defines the value of the type property of the event object for a focusGained event.
AWEvent
  FOCUS_LOST : String = "focusLost"
[static] The AWEvent.FOCUS_LOST constant defines the value of the type property of the event object for a focusLost event.
AWEvent
  HIDDEN : String = "hidden"
[static] The AWEvent.HIDDEN constant defines the value of the type property of the event object for a hidden event.
AWEvent
  PAINT : String = "paint"
[static] The AWEvent.PAINT constant defines the value of the type property of the event object for a paint event.
AWEvent
  SHOWN : String = "shown"
[static] The AWEvent.SHOWN constant defines the value of the type property of the event object for a shown event.
AWEvent
Constructor detail
AWEvent()constructor
public function AWEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Create an AWEvent.

Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Method detail
clone()method
public override function clone():Event

Returns
Event
Constant detail
ACTconstant
public static const ACT:String = "act"

The AWEvent.ACT constant defines the value of the type property of the event object for a act event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
FOCUS_GAINEDconstant 
public static const FOCUS_GAINED:String = "focusGained"

The AWEvent.FOCUS_GAINED constant defines the value of the type property of the event object for a focusGained event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
FOCUS_LOSTconstant 
public static const FOCUS_LOST:String = "focusLost"

The AWEvent.FOCUS_LOST constant defines the value of the type property of the event object for a focusLost event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
HIDDENconstant 
public static const HIDDEN:String = "hidden"

The AWEvent.HIDDEN constant defines the value of the type property of the event object for a hidden event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
PAINTconstant 
public static const PAINT:String = "paint"

The AWEvent.PAINT constant defines the value of the type property of the event object for a paint event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
SHOWNconstant 
public static const SHOWN:String = "shown"

The AWEvent.SHOWN constant defines the value of the type property of the event object for a shown event.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
currentTargetThe Object that defines the event listener that handles the event. For example, if you use comp.addEventListener() to register an event listener, comp is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.