Packageorg.apache.flex.core
Classpublic class SimpleValuesImpl
InheritanceSimpleValuesImpl Inheritance EventDispatcher Inheritance flash.events.EventDispatcher
Implements IValuesImpl

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The SimpleValuesImpl class implements a simple lookup rules that is sufficient for many very simple applications. Every value is essential global and shared by other instances. Values are set via calls to setValue.



Public Properties
 PropertyDefined By
  values : Object
The map of values.
SimpleValuesImpl
Public Methods
 MethodDefined By
  
SimpleValuesImpl
  
getInstance(valueName:String):Object
Returns a shared instance, instantiating the shared instance if it doesn't exist.
SimpleValuesImpl
  
getValue(thisObject:Object, valueName:String, state:String = null, attrs:Object = null):*
Returns a value for a given object based on a property name, and optionally, the current state, and a set of property value pairs.
SimpleValuesImpl
  
init(mainClass:Object):void
MXML Documents that support <fx:Style> blocks should call init to install the styles for each instance.
SimpleValuesImpl
  
setValue(thisObject:Object, valueName:String, value:Object):void
A method that stores a value to be shared with other objects.
SimpleValuesImpl
Property Detail
valuesproperty
public var values:Object

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The map of values. The format is not documented and it is not recommended to manipulate this structure directly.

Constructor Detail
SimpleValuesImpl()Constructor
public function SimpleValuesImpl()



Method Detail
getInstance()method
public function getInstance(valueName:String):Object

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Returns a shared instance, instantiating the shared instance if it doesn't exist. Often used to share "managers"

Parameters

valueName:String — The name of a shared instance. Often, the fully qualified class name is used.

Returns
Object — The shared instance.
getValue()method 
public function getValue(thisObject:Object, valueName:String, state:String = null, attrs:Object = null):*

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Returns a value for a given object based on a property name, and optionally, the current state, and a set of property value pairs.

Parameters

thisObject:Object — The object to get the value for.
 
valueName:String — The name of a property. e.g. fontFamily, color, etc.
 
state:String (default = null) — The name of a state. e.g. hovered, visited
 
attrs:Object (default = null) — A map of property value pairs that may affect the returned value.

Returns
* — A value or undefined
init()method 
public function init(mainClass:Object):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

MXML Documents that support <fx:Style> blocks should call init to install the styles for each instance.

Parameters

mainClass:Object — An instance that may have styles from an <fx:Style> block.

setValue()method 
public function setValue(thisObject:Object, valueName:String, value:Object):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

A method that stores a value to be shared with other objects. It is global, not per instance. Fancier implementations may store shared values per-instance.

Parameters

thisObject:Object — An object associated with this value. Thiis parameter is ignored.
 
valueName:String — The name or key of the value being stored.
 
value:Object — The value to be stored.