Package | feathers.skins |
Class | public class StateValueSelector |
Inheritance | StateValueSelector ![]() |
Property | Defined By | ||
---|---|---|---|
defaultValue : Object
If there is no value for the specified state, a default value can
be used as a fallback. | StateValueSelector |
Method | Defined By | ||
---|---|---|---|
Constructor. | StateValueSelector | ||
clearValueForState(state:Object):Object
Clears the value stored for a specific state. | StateValueSelector | ||
getValueForState(state:Object):Object
Returns the value stored for a specific state. | StateValueSelector | ||
setValueForState(value:Object, state:Object):void
Stores a value for a specified state to be returned from
getValueForState(). | StateValueSelector | ||
updateValue(target:Object, state:Object, oldValue:Object = null):Object
Returns the value stored for a specific state. | StateValueSelector |
defaultValue | property |
public var defaultValue:Object
If there is no value for the specified state, a default value can be used as a fallback.
StateValueSelector | () | Constructor |
public function StateValueSelector()
Constructor.
clearValueForState | () | method |
public function clearValueForState(state:Object):Object
Clears the value stored for a specific state.
Parameters
state:Object |
Object |
getValueForState | () | method |
public function getValueForState(state:Object):Object
Returns the value stored for a specific state.
Parameters
state:Object |
Object |
setValueForState | () | method |
public function setValueForState(value:Object, state:Object):void
Stores a value for a specified state to be returned from getValueForState().
Parameters
value:Object | |
state:Object |
updateValue | () | method |
public function updateValue(target:Object, state:Object, oldValue:Object = null):Object
Returns the value stored for a specific state. May generate a value, if none is present.
Parameters
target:Object — The object receiving the stored value. The manager may query properties on the target to customize the returned value.
| |
state:Object — The current state.
| |
oldValue:Object (default = null ) — The previous value. May be reused for the new value.
|
Object |