Packageorg.spicefactory.parsley.core.view.handler
Classpublic class ViewConfigurationHandler
InheritanceViewConfigurationHandler Inheritance Object
Implements ViewRootHandler

ViewRootHandler implementation that deals with bubbling events from components that explicitly signal that they wish to get wired to the Context or that are getting autowired.



Public Methods
 MethodDefined By
  
addViewRoot(view:DisplayObject):void
Adds a view root to this handler.
ViewConfigurationHandler
  
destroy():void
Invoked when the associated Context gets destroyed.
ViewConfigurationHandler
  
init(context:Context, settings:ViewSettings):void
Initializes the handler and passes some collaborators.
ViewConfigurationHandler
  
removeViewRoot(view:DisplayObject):void
Removes a view root from this handler.
ViewConfigurationHandler
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