Packageorg.spicefactory.parsley.core.view.util
Classpublic class ContextAwareEventHandler
InheritanceContextAwareEventHandler Inheritance Object

An event handler that caches events before invoking the target handler when the associated Parsley Context is not fully initialized yet.



Public Methods
 MethodDefined By
  
ContextAwareEventHandler(context:Context, handler:Function)
Creates a new instance.
ContextAwareEventHandler
  
dispose():void
Dispose this event handler, clearing its internal cache of events that needed deferral.
ContextAwareEventHandler
  
handleEvent(event:Event):void
Handles the specified event, potentially deferring the target handler invocation in case the associated Context is not fully initialized yet.
ContextAwareEventHandler
Constructor Detail
ContextAwareEventHandler()Constructor
public function ContextAwareEventHandler(context:Context, handler:Function)

Creates a new instance.

Parameters
context:Context — the associated Context
 
handler:Function — the handler to invoke for each event
Method Detail
dispose()method
public function dispose():void

Dispose this event handler, clearing its internal cache of events that needed deferral.

handleEvent()method 
public function handleEvent(event:Event):void

Handles the specified event, potentially deferring the target handler invocation in case the associated Context is not fully initialized yet.

Parameters

event:Event — the event to handle