Bool

Kind of class:class
Inherits from:DataAccessor
Classpath:mx.data.formatters.Bool
File last modified:Tuesday, 18 December 2007, 15:44:38
A formatter for Boolean values.

Summary


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

Instance properties

falseString

falseString:String
(read)

trueString

trueString:String
(read)

Instance methods

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