Main Page | Packages | Class Tree | Index | Help

mx.events

class UIEventDispatcher

Object
  |
  +--mx.events.EventDispatcher
        |
        +--mx.events.UIEventDispatcher


class UIEventDispatcher
extends EventDispatcher

event listening and dispatching for UIObjects.



Field Summary


__origAddEventListener: Function
we can't use 'super' in a mix-in because we'd then have to mix into the object's prototype which is too dangerous instead we rename functions from the parent class and add them to the object as well.


__sentLoadEvent
we don't know if the load event has already been sent when the user adds a listener for "load".

static
_fEventDispatcher: UIEventDispatcher
a copy of ourselves so we can add methods to other instances

static
keyEvents: Object
list of supported keyboard events

static
loadEvents: Object
load and unload events

static
lowLevelEvents: Object



owner: Object
a pointer to the target object used when we get called in a different scope

Fields inherited from class mx.events.EventDispatcher

_fEventDispatcher, exceptions

Fields inherited from class Object

__proto__, constructor, prototype

Method Summary


__addEventListener ( event: String, handler ): Void
internal hook of FEventDispatcher.addEventListener

static
addKeyEvents ( obj: Object ): Void
internal function that adds keyboard listeners to a UIObject so the listener can get events

static
addLoadEvents ( obj: Object ): Void
internal function that adds load/unload listeners to a UIObject so the listener can get events


dispatchEvent ( eventObj: Object ): Void
dispatch the event to all listeners

static
initialize ( obj: Object ): Void
add listening and dispatching methods to an object


onKeyDown ( Void ): Void
internal hook for keyboard events


onKeyUp ( Void ): Void
internal hook for keyboard events


onLoad ( Void ): Void
internal hook for load events


onUnload ( Void ): Void
internal hook for load events


removeEventListener ( event: String, handler ): Void
override of FEventDispatcher.removeEventListener

static
removeKeyEvents ( obj: Object ): Void
internal function that removes keyboard listeners from a UIObject

static
removeLoadEvents ( obj: Object ): Void
internal function that removes load/unload listeners from a UIObject

Methods inherited from class mx.events.EventDispatcher

_removeEventListener, addEventListener, dispatchEvent, dispatchQueue, initialize, removeEventListener

Methods inherited from class Object

addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toLocaleString, toString, unwatch, valueOf, watch



Field Documentation

__origAddEventListener

var __origAddEventListener: Function
we can't use 'super' in a mix-in because we'd then have to mix into the object's prototype which is too dangerous instead we rename functions from the parent class and add them to the object as well.

__sentLoadEvent

var __sentLoadEvent
we don't know if the load event has already been sent when the user adds a listener for "load".

So, we send them a load event and don't send one when the real load event happens

_fEventDispatcher

static var _fEventDispatcher: UIEventDispatcher
a copy of ourselves so we can add methods to other instances

keyEvents

static var keyEvents: Object
list of supported keyboard events

loadEvents

static var loadEvents: Object
load and unload events

lowLevelEvents

static var lowLevelEvents: Object

owner

var owner: Object
a pointer to the target object used when we get called in a different scope


Method Documentation

__addEventListener

function __addEventListener(event: String,
 handler): Void
internal hook of FEventDispatcher.addEventListener

addKeyEvents

static function addKeyEvents(obj: Object): Void
internal function that adds keyboard listeners to a UIObject so the listener can get events

addLoadEvents

static function addLoadEvents(obj: Object): Void
internal function that adds load/unload listeners to a UIObject so the listener can get events

dispatchEvent

function dispatchEvent(eventObj: Object): Void
dispatch the event to all listeners

Overrides:

Parameters:
eventObj
an Event or one of its subclasses describing the event

initialize

static function initialize(obj: Object): Void
add listening and dispatching methods to an object

Overrides:

Parameters:
obj
object the object to receive the methods

onKeyDown

function onKeyDown(Void): Void
internal hook for keyboard events

onKeyUp

function onKeyUp(Void): Void
internal hook for keyboard events

onLoad

function onLoad(Void): Void
internal hook for load events

onUnload

function onUnload(Void): Void
internal hook for load events

removeEventListener

function removeEventListener(event: String,
 handler): Void
override of FEventDispatcher.removeEventListener

Overrides:

Parameters:
event
the name of the event ("click", "change", etc)
handler
the function or object that should be called

removeKeyEvents

static function removeKeyEvents(obj: Object): Void
internal function that removes keyboard listeners from a UIObject

removeLoadEvents

static function removeLoadEvents(obj: Object): Void
internal function that removes load/unload listeners from a UIObject


The documentation was generated from the following file:


Copyright © 1997-2005 Macromedia, Inc. All rights reserved. Generated with AS2Doc