Packageorg.spicefactory.parsley.core.view.handler
Classpublic class ContextLookupHandler
InheritanceContextLookupHandler Inheritance Object
Implements ViewRootHandler

ViewRootHandler implementation that deals with bubbling events from components that want to find out the nearest Context in the view hierarchy above them.



Public Methods
 MethodDefined By
  
addViewRoot(view:DisplayObject):void
Adds a view root to this handler.
ContextLookupHandler
  
destroy():void
Invoked when the associated Context gets destroyed.
ContextLookupHandler
  
init(context:Context, settings:ViewSettings):void
Initializes the handler and passes some collaborators.
ContextLookupHandler
  
removeViewRoot(view:DisplayObject):void
Removes a view root from this handler.
ContextLookupHandler
Method Detail
addViewRoot()method
public function addViewRoot(view:DisplayObject):void

Adds a view root to this handler. A handler often has to listen to bubbling events from view components that wish to be wired to the Context or from a ContextBuilder that wishes to know the parent Context and the ApplicationDomain.

Parameters

view:DisplayObject — the view root to add to the handler

destroy()method 
public function destroy():void

Invoked when the associated Context gets destroyed.

init()method 
public function init(context:Context, settings:ViewSettings):void

Initializes the handler and passes some collaborators. Invoked once in the lifecycle of each handler instance.

Parameters

context:Context — the Context this handler belongs to
 
settings:ViewSettings — the settings to use

removeViewRoot()method 
public function removeViewRoot(view:DisplayObject):void

Removes a view root from this handler. The handler should immediately stop to listen to bubbling events from children of the specified view root.

Parameters

view:DisplayObject — the view root to remove from the handler