Packageorg.apache.flex.core
Interfacepublic interface IValuesImpl
Implementors SimpleCSSValuesImpl, SimpleValuesImpl

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

The IValuesImpl interface is the basic interface for the subsystem that provides default values to components. The most common implementation implements a simple version of CSS and uses data structures compiled from CSS files.

See also

org.apache.flex.core.SimpleCSSValuesImpl


Public Methods
 MethodDefined By
  
getInstance(valueName:String):Object
Returns a shared instance, instantiating the shared instance if it doesn't exist.
IValuesImpl
  
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.
IValuesImpl
  
init(mainClass:Object):void
MXML Documents that support <fx:Style> blocks should call init to install the styles for each instance.
IValuesImpl
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.