| Package | com.bourre.view |
| Class | public final class ViewLocator |
| Inheritance | ViewLocator AbstractLocator |
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
AbstractView object.
Locator is unique for a Plugin instance.
See also
| Method | Defined by | ||
|---|---|---|---|
![]() |
add(d:Dictionary):void
Adds all ressources contained in the passed-in dictionnary
into this locator instance.
| AbstractLocator | |
![]() |
addEventListener(type:String, listener:Object, ... rest):Boolean
Adds an event listener for the specified event type.
| AbstractLocator | |
![]() |
callMethodOnAllValues(methodName:String, ... args):void
Takes all values of a Locator and call on each value the method name
passed as 1st argument.
| AbstractLocator | |
|
[static]
Returns the unique
ViewLocator instance for
passed-in Plugin. | ViewLocator | ||
![]() |
getKeys():Array
Returns an
Array view of the keys contained in this locator. | AbstractLocator | |
![]() |
Returns the exclusive logger object owned by this locator.
| AbstractLocator | |
|
Returns the plugin owner of this locator.
| ViewLocator | ||
![]() |
getType():Class
Return the class type of elements in this container.
| AbstractLocator | |
![]() |
getValues():Array
Returns an
Array view of the values contained in this locator. | AbstractLocator | |
|
getView(key:String):AbstractView
Returns
AbstractView registered with passed-in
key identifier. | ViewLocator | ||
![]() |
isRegistered(name:String):Boolean
Returns
true is there is a ressource associated
with the passed-in key. | AbstractLocator | |
![]() |
isTyped():Boolean
Returns
true if this container perform a verification
of the type of elements. | AbstractLocator | |
![]() |
locate(name:String):Object
Returns the ressource associated with the passed-in
key. | AbstractLocator | |
![]() |
matchType(o:*):Boolean
Verify that the passed-in object type match the current
container element's type.
| AbstractLocator | |
![]() |
processOnAllValues(f:Function, ... args):void
Takes all values of a Locator and pass them one by one as arguments
to a method of an object.
| AbstractLocator | |
|
register(key:String, o:Object):Boolean
Registers passed-in object with identifier name to this locator.
| ViewLocator | ||
|
release():void
Clears all association between keys and objects
registered for this locator.
| ViewLocator | ||
![]() |
removeEventListener(type:String, listener:Object):Boolean
Removes the passed-in listener for listening the specified event.
| AbstractLocator | |
|
toString():String
Returns the string representation of this instance.
| ViewLocator | ||
![]() |
unregister(name:String):Boolean
Unregisters object registered with identifier name.
| AbstractLocator | |
| getInstance | () | method |
public static function getInstance(owner:Plugin = null):ViewLocator
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the unique ViewLocator instance for
passed-in Plugin.
owner:Plugin (default = null) |
ViewLocator —
The unique ViewLocator instance.
|
| getOwner | () | method |
public function getOwner():Plugin
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the plugin owner of this locator.
ReturnsPlugin —
The plugin owner of this locator.
|
| getView | () | method |
public function getView(key:String):AbstractView
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns AbstractView registered with passed-in
key identifier.
key:String — View registration ID
|
AbstractView |
— NoSuchElementException — There is no view
associated with the passed-in key
|
| register | () | method |
public override function register(key:String, o:Object):Boolean
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Registers passed-in object with identifier name to this locator.
Parameterskey:String — Key identifier
|
|
o:Object — Object to store
|
Boolean — true if success
|
— NullPointerException — Key or object
are null
|
| release | () | method |
public override function release():void
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Clears all association between keys and objects registered for this locator.
| toString | () | method |
public override function toString():String
| Player version: | Flash Player 9.0 |
| Language version: | ActionScript 3.0 |
Returns the string representation of this instance.
ReturnsString — the string representation of this instance
|