gugga.utils.EventRethrower Class Reference

List of all members.

Detailed Description

TODO: This class should be revised. (think over event bubbling mechanism)

Definition at line 9 of file EventRethrower.as.

Public Member Functions

function get Event ()
function EventRethrower (aContext:IEventDispatcher, aDispatcher:IEventDispatcher, aEvent:String, aRethrowOnce:Boolean)
function startListening ()
function stopListening ()

Static Public Member Functions

static function create (aContext:IEventDispatcher, aDispatcher:IEventDispatcher, aEvent:String)
static function createSingleTimeRethrower (aContext:IEventDispatcher, aDispatcher:IEventDispatcher, aEvent:String)

Private Member Functions

function forwardEvent (ev)

Private Attributes

var mContext:IEventDispatcher
var mDispatcher:IEventDispatcher
var mEvent:String
var mDelegate:Function
var mRethrowOnce: Boolean


Constructor & Destructor Documentation

function gugga.utils.EventRethrower.EventRethrower ( aContext:IEventDispatcher  ,
aDispatcher:IEventDispatcher  ,
aEvent:String  ,
aRethrowOnce:Boolean   
)

Definition at line 22 of file EventRethrower.as.


Member Function Documentation

function get gugga.utils.EventRethrower.Event (  ) 

Definition at line 17 of file EventRethrower.as.

function gugga.utils.EventRethrower.forwardEvent ( ev   )  [private]

TODO: Should we change the value of ev.target property to mContext? Shouldn't we also clone event info object before changing the target property.

Definition at line 32 of file EventRethrower.as.

function gugga.utils.EventRethrower.startListening (  ) 

Definition at line 46 of file EventRethrower.as.

function gugga.utils.EventRethrower.stopListening (  ) 

Definition at line 51 of file EventRethrower.as.

static function gugga.utils.EventRethrower.create ( aContext:IEventDispatcher  ,
aDispatcher:IEventDispatcher  ,
aEvent:String   
) [static]

Definition at line 56 of file EventRethrower.as.

static function gugga.utils.EventRethrower.createSingleTimeRethrower ( aContext:IEventDispatcher  ,
aDispatcher:IEventDispatcher  ,
aEvent:String   
) [static]

Definition at line 66 of file EventRethrower.as.


Member Data Documentation

var gugga.utils.EventRethrower.mContext [private]

Definition at line 11 of file EventRethrower.as.

var gugga.utils.EventRethrower.mDispatcher [private]

Definition at line 12 of file EventRethrower.as.

var gugga.utils.EventRethrower.mEvent [private]

Definition at line 13 of file EventRethrower.as.

var gugga.utils.EventRethrower.mDelegate [private]

Definition at line 14 of file EventRethrower.as.

var gugga.utils.EventRethrower.mRethrowOnce [private]

Definition at line 15 of file EventRethrower.as.


Generated on Fri May 11 17:14:52 2007 for GuggaFramework by  doxygen 1.5.2