| Package | org.robotlegs.base |
| Class | public class ViewMap |
| Inheritance | ViewMap ViewMapBase Object |
| Implements | IViewMap |
IViewMap implementation
| Method | Defined By | ||
|---|---|---|---|
Creates a new ViewMap object
| ViewMap | ||
hasPackage(packageName:String):Boolean
Check if a package has been registered for automatic injection
| ViewMap | ||
hasType(type:Class):Boolean
Check if a class or interface has been registered for automatic injection
| ViewMap | ||
mapPackage(packageName:String):void
Map an entire package (including sub-packages) for automatic injection
| ViewMap | ||
mapType(type:Class):void
Map a view component class or interface for automatic injection
| ViewMap | ||
unmapPackage(packageName:String):void
Unmap a package
| ViewMap | ||
unmapType(type:Class):void
Unmap a view component class or interface
| ViewMap | ||
| Method | Defined By | ||
|---|---|---|---|
injectInto(target:DisplayObject):void | ViewMap | ||
| ViewMap | () | Constructor |
public function ViewMap(contextView:DisplayObjectContainer, injector:IInjector)
Creates a new ViewMap object
contextView:DisplayObjectContainer — The root view node of the context. The map will listen for ADDED_TO_STAGE events on this node
| |
injector:IInjector — An IInjector to use for this context
|
| hasPackage | () | method |
public function hasPackage(packageName:String):BooleanCheck if a package has been registered for automatic injection
Parameters
packageName:String — The substring to compare
|
Boolean — Whether a package has been registered for automatic injection
|
| hasType | () | method |
public function hasType(type:Class):BooleanCheck if a class or interface has been registered for automatic injection
Parameters
type:Class — The concrete view interface
|
Boolean — Whether an interface has been registered for automatic injection
|
| injectInto | () | method |
protected function injectInto(target:DisplayObject):voidParameters
target:DisplayObject |
| mapPackage | () | method |
public function mapPackage(packageName:String):voidMap an entire package (including sub-packages) for automatic injection
Parameters
packageName:String — The substring to compare
|
| mapType | () | method |
public function mapType(type:Class):voidMap a view component class or interface for automatic injection
Parameters
type:Class — The concrete view Interface
|
| unmapPackage | () | method |
public function unmapPackage(packageName:String):voidUnmap a package
Parameters
packageName:String — The substring to compare
|
| unmapType | () | method |
public function unmapType(type:Class):voidUnmap a view component class or interface
Parameters
type:Class — The concrete view Interface
|