Packageorg.robotlegs.base
Classpublic class ViewMap
InheritanceViewMap Inheritance ViewMapBase Inheritance Object
Implements IViewMap

An abstract IViewMap implementation



Public Properties
 PropertyDefined By
 InheritedcontextView : DisplayObjectContainer
ViewMapBase
 Inheritedenabled : Boolean
ViewMapBase
Public Methods
 MethodDefined By
  
ViewMap(contextView:DisplayObjectContainer, injector:IInjector)
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
Protected Methods
 MethodDefined By
  
injectInto(target:DisplayObject):void
ViewMap
Constructor Detail
ViewMap()Constructor
public function ViewMap(contextView:DisplayObjectContainer, injector:IInjector)

Creates a new ViewMap object

Parameters
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
Method Detail
hasPackage()method
public function hasPackage(packageName:String):Boolean

Check if a package has been registered for automatic injection

Parameters

packageName:String — The substring to compare

Returns
Boolean — Whether a package has been registered for automatic injection
hasType()method 
public function hasType(type:Class):Boolean

Check if a class or interface has been registered for automatic injection

Parameters

type:Class — The concrete view interface

Returns
Boolean — Whether an interface has been registered for automatic injection
injectInto()method 
protected function injectInto(target:DisplayObject):void

Parameters

target:DisplayObject

mapPackage()method 
public function mapPackage(packageName:String):void

Map an entire package (including sub-packages) for automatic injection

Parameters

packageName:String — The substring to compare

mapType()method 
public function mapType(type:Class):void

Map a view component class or interface for automatic injection

Parameters

type:Class — The concrete view Interface

unmapPackage()method 
public function unmapPackage(packageName:String):void

Unmap a package

Parameters

packageName:String — The substring to compare

unmapType()method 
public function unmapType(type:Class):void

Unmap a view component class or interface

Parameters

type:Class — The concrete view Interface