Main Page | Packages | Class Tree | Index | Help

xp.data

class DataFormatterProxy

Object
  |
  +--xp.data.DataFormatterProxy


class DataFormatterProxy
extends Object

DataFormatterProxy
A data formastter that callbacks to a user event handler to format


Author:
ProWin Computers Ltd. - Rob Edgar

Version:
3.0.0.000

See also:


Field Summary

public
functionName: String
The function to callback

public
listener: Object
The instance to callback

public
type: String


Constructor

public
DataFormatterProxy ( listener: Object, functionName: String)
Constructor

Method Summary

public
format ( value: Object, data: Object ): Object
Converts from a raw data type to a new object

public
parse ( value: Object, data: Object ): Object
Converts from a string, or other data type, to the raw data type



Field Documentation

functionName

public var functionName: String
The function to callback

listener

public var listener: Object
The instance to callback

type

public var type: String

Constructor Documentation

DataFormatterProxy

public function DataFormatterProxy(listener: Object,
 functionName: String)
Constructor

Parameters:
listener
The target object to call
functionName
The

Method Documentation

format

public function format(value: Object,
 data: Object): Object
Converts from a raw data type to a new object

Converts from a raw data type to a new object.

Usage:
This method is called automatically; you don’t invoke it directly.

Parameters:
value
The raw data value to be formatted
data
If being used for DataBinding this will be the row data otherwise it will be null
Returns:
A formatted value

parse

public function parse(value: Object,
 data: Object): Object
Converts from a string, or other data type, to the raw data type

Converts from a string, or other data type, to the raw data type. This transformation should be the exact inverse transformation of IDataFormatter.format().

Usage:
This method is called automatically; you don’t invoke it directly.

Parameters:
value
The formatted value
data
If being used for DataBinding this will be the row data otherwise it will be null
Returns:
An unformatted value


The documentation was generated from the following file:


Generated on 10/30/2005 9:34:02 PM by AS2Doc