Package | org.spicefactory.parsley.core.view |
Interface | public interface ViewRootHandler |
Implementors | ContextLookupHandler, ViewConfigurationHandler |
ViewSettings.addViewRootHandler
or the
viewRootHandler attribute of the <ViewSettings>
tag.
Method | Defined By | ||
---|---|---|---|
addViewRoot(view:DisplayObject):void
Adds a view root to this handler. | ViewRootHandler | ||
destroy():void
Invoked when the associated Context gets destroyed. | ViewRootHandler | ||
Initializes the handler and passes some collaborators. | ViewRootHandler | ||
removeViewRoot(view:DisplayObject):void
Removes a view root from this handler. | ViewRootHandler |
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
|