Custom
| Kind of class: | class |
|---|---|
| Inherits from: | DataAccessor |
| Classpath: | mx.data.formatters.Custom |
| File last modified: | Tuesday, 18 December 2007, 15:44:38 |
A Formatter which is implemented via a user-defined class.
Summary
Instance properties
Instance properties inherited from DataAccessor
Class methods
Class methods inherited from DataAccessor
Instance methods
- getGettableTypes : Array
- Retrieves a list of types that getTypedValue can produce.
- getTypedValue (requestedType:String) : mx.data.binding.TypedValue
- Retrieves the current value of the data as a typed value.
- setTypedValue (newValue:mx = .data.binding.TypedValue) : Array
- Sets the data to a new value, of a given type.
- getSettableTypes : Array
- Retrieves a list of types that setTypedValue can accept.
- Setup
Instance methods inherited from DataAccessor
- getSettableTypes : Array
Instance properties
classname
classname:String(read)formatter
private formatter:Function(read)Instance methods
getGettableTypes
function getGettableTypes () : ArrayRetrieves a list of types that getTypedValue can produce.#Returns:- an Array of type names. When you call getTypedValue, we prefer that you request#
from it a value of one of these types.
.
getSettableTypes
function getSettableTypes () : ArrayRetrieves a list of types that setTypedValue can accept.#Returns:- an Array of type names. When you call setTypedValue, we prefer that call it with#
a value of one of these types.
.
getTypedValue
Retrieves the current value of the data as a typed value.#Returns:- the current value of the data, if we can produce it in the#
requested type. If we can't get the value as the requested type, we return null.
If the requested type is null, then we return it as whatever type we like.
Overrides:setTypedValue
function setTypedValue (newValue:mx = .data.binding.TypedValue) : ArraySets the data to a new value, of a given type.#Parameters:newValue:A data value. Its type should be one of the type returned by getSettableTypes.#Overrides:Setup
private function Setup () - setTypedValue (newValue:mx = .data.binding.TypedValue) : Array
- getTypedValue (requestedType:String) : mx.data.binding.TypedValue