Main Page | Packages | Class Tree | Index | Help

xp.events

class EventDelegate

Object
  |
  +--xp.events.EventDelegate


class EventDelegate
extends Object

The EventDelegate class creates a DOM3 compliant wrapper to let you invoke an event handler in the context of the original object, rather than in the context of the second object with optional arguments



Field Summary

public
args: Array
Returns The optional arguments to pass to the function when invoked.

public
method: Function
Returns The function or name of function to run.

public
target: Object
Returns the object on which this event handler will perform an action

Constructor

public
EventDelegate ( target: Object, method)
Creates a new EventHandler object; you generally use one of the create methods instead of invoking this constructor directly

Method Summary

public
handleEvent ( e: Event ): Void
DOM3 compliant callback for events

public
processArguments ( eArgs: Array ): Array
Process the event arguments



Field Documentation

args

public var args: Array
Returns The optional arguments to pass to the function when invoked.

method

public var method: Function
Returns The function or name of function to run.

target

public var target: Object
Returns the object on which this event handler will perform an action


Constructor Documentation

EventDelegate

public function EventDelegate(target: Object,
 method)
Creates a new EventHandler object; you generally use one of the create methods instead of invoking this constructor directly

Parameters:
target
The object that will perform the action
method

Method Documentation

handleEvent

public function handleEvent(e: Event): Void
DOM3 compliant callback for events

processArguments

public function processArguments(eArgs: Array): Array
Process the event arguments

Returns:
the arguments to be passed when invoking the event handler


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc