Packageorg.spicefactory.parsley.core.view
Interfacepublic interface ViewManager
Implementors DefaultViewManager

A ViewManager is responsible for dynamically wiring views to a Context and other view related tasks. One or more view roots (any kind of DisplayObject) can be associated with a ViewManager. The manager then listens for bubbling events dispatched by children of any of the view roots to signal that they want to be added to a Context.

In a simple application there is often just one view root associated with each Context. But in some use cases, in particular when using Flex Popups or Native AIR Windows, additional view roots must be connected to a Context, since these popups and windows build a disconnected view hierarchy.



Public Methods
 MethodDefined By
  
addViewRoot(view:DisplayObject):void
Adds a view root to this manager.
ViewManager
  
removeViewRoot(view:DisplayObject):void
Removes a view root from this manager.
ViewManager
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

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