Data

Kind of class:class
Inherits from:DataAccessor
Known subclasses:
Classpath:mx.data.kinds.Data
File last modified:Tuesday, 18 December 2007, 15:44:38
A default kind, that just passes all requests to a FieldAccessor

Summary


Instance properties
Instance properties inherited from DataAccessor
Class methods
Class methods inherited from DataAccessor
Instance methods

Instance methods

getFieldAccessor

private function getFieldAccessor (

getGettableTypes

function getGettableTypes (
) : Array

Retrieves 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 (
) : Array

Retrieves 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

function getTypedValue (
requestedType:String) : mx.data.binding.TypedValue

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.
    #

setTypedValue

function setTypedValue (
newValue:mx = .data.binding.TypedValue) : Array

Sets 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.
#