| Package | org.spicefactory.parsley.core.view.handler |
| Class | public class ContextLookupHandler |
| Inheritance | ContextLookupHandler Object |
| Implements | ViewRootHandler |
| Method | Defined By | ||
|---|---|---|---|
addViewRoot(view:DisplayObject):void
Adds a view root to this handler. | ContextLookupHandler | ||
destroy():void
Invoked when the associated Context gets destroyed. | ContextLookupHandler | ||
Initializes the handler and passes some collaborators. | ContextLookupHandler | ||
removeViewRoot(view:DisplayObject):void
Removes a view root from this handler. | ContextLookupHandler | ||
| addViewRoot | () | method |
public function addViewRoot(view:DisplayObject):voidAdds 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():voidInvoked when the associated Context gets destroyed.
| init | () | method |
public function init(context:Context, settings:ViewSettings):voidInitializes 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):voidRemoves 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
|