Packageorg.spicefactory.parsley.core.view.impl
Classpublic class DefaultViewManager
InheritanceDefaultViewManager Inheritance Object
Implements ViewManager, InitializingService

Default implementation of the ViewManager interface. Delegates most of the work to ViewRootHandlers.



Public Methods
 MethodDefined By
  
Creates a new instance.
DefaultViewManager
  
addViewRoot(view:DisplayObject):void
Adds a view root to this manager.
DefaultViewManager
  
init(info:BootstrapInfo):void
Invoked once after the service has been instantiated.
DefaultViewManager
  
removeViewRoot(view:DisplayObject):void
Removes a view root from this manager.
DefaultViewManager
Constructor Detail
DefaultViewManager()Constructor
public function DefaultViewManager()

Creates a new instance.

Method Detail
addViewRoot()method
public function addViewRoot(view:DisplayObject):void

Adds a view root to this manager. The manager is then responsible 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 manager

init()method 
public function init(info:BootstrapInfo):void

Invoked once after the service has been instantiated. The BootstrapInfo instance passed to this method gives access to the settings and collaborating services.

Parameters

info:BootstrapInfo — the environment of the Context building process

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

Removes a view root from this manager. The manager 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 manager