| Package | org.robotlegs.mvcs |
| Class | public class Context |
| Inheritance | Context ContextBase Object |
| Implements | IContext |
IContext implementation
| Property | Defined By | ||
|---|---|---|---|
| contextView : DisplayObjectContainer
The DisplayObjectContainer that scopes this IContext
| Context | ||
![]() | eventDispatcher : IEventDispatcher [read-only]
The IContext's IEventDispatcher
| ContextBase | |
| Property | Defined By | ||
|---|---|---|---|
| commandMap : ICommandMap
The ICommandMap for this IContext
| Context | ||
| injector : IInjector
The IInjector for this IContext
| Context | ||
| mediatorMap : IMediatorMap
The IMediatorMap for this IContext
| Context | ||
| reflector : IReflector
The IReflector for this IContext
| Context | ||
| viewMap : IViewMap
The IViewMap for this IContext
| Context | ||
| Method | Defined By | ||
|---|---|---|---|
Context(contextView:DisplayObjectContainer = null, autoStartup:Boolean = true)
Abstract Context Implementation
Extend this class to create a Framework or Application context
| Context | ||
shutdown():void
The Startup Hook
Override this in your Application context
| Context | ||
startup():void
The Startup Hook
Override this in your Application context
| Context | ||
| Method | Defined By | ||
|---|---|---|---|
mapInjections():void
Injection Mapping Hook
Override this in your Framework context to change the default configuration
Beware of collisions in your container
| Context | ||
| commandMap | property |
commandMap:ICommandMap
The ICommandMap for this IContext
protected function get commandMap():ICommandMap protected function set commandMap(value:ICommandMap):void| contextView | property |
contextView:DisplayObjectContainer
The DisplayObjectContainer that scopes this IContext
public function get contextView():DisplayObjectContainer public function set contextView(value:DisplayObjectContainer):void| injector | property |
injector:IInjector
The IInjector for this IContext
protected function get injector():IInjector protected function set injector(value:IInjector):void| mediatorMap | property |
mediatorMap:IMediatorMap
The IMediatorMap for this IContext
protected function get mediatorMap():IMediatorMap protected function set mediatorMap(value:IMediatorMap):void| reflector | property |
reflector:IReflector
The IReflector for this IContext
protected function get reflector():IReflector protected function set reflector(value:IReflector):void| viewMap | property |
viewMap:IViewMap
The IViewMap for this IContext
protected function get viewMap():IViewMap protected function set viewMap(value:IViewMap):void| Context | () | Constructor |
public function Context(contextView:DisplayObjectContainer = null, autoStartup:Boolean = true)Abstract Context Implementation
Extend this class to create a Framework or Application context
ParameterscontextView:DisplayObjectContainer (default = null) — The root view node of the context. The context will listen for ADDED_TO_STAGE events on this node
| |
autoStartup:Boolean (default = true) — Should this context automatically invoke it's startup method when it's contextView arrives on Stage?
|
| mapInjections | () | method |
protected function mapInjections():voidInjection Mapping Hook
Override this in your Framework context to change the default configuration
Beware of collisions in your container
| shutdown | () | method |
public function shutdown():voidThe Startup Hook
Override this in your Application context
| startup | () | method |
public function startup():voidThe Startup Hook
Override this in your Application context