Package | org.spicefactory.parsley.core.view |
Interface | public interface ViewManager |
Implementors | DefaultViewManager |
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.
Method | Defined 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 |
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
|