Main Page | Packages | Class Tree | Index | Help

xp.data

class DataValidatorProxy

Object
  |
  +--xp.data.DataValidatorProxy


class DataValidatorProxy
extends Object

DataValidatorProxy
A data validator that callbacks to a user event handler to validate


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

Constructor

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

Method Summary

public
validate ( value: Object, property: String ): Boolean
Performs validation on data.



Field Documentation

functionName

public var functionName: String
The function to callback

listener

public var listener: Object
The instance to callback


Constructor Documentation

DataValidatorProxy

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

Parameters:
listener
The target object to call
functionName
The

Method Documentation

validate

public function validate(value: Object,
 property: String): Boolean
Performs validation on data.

Called automatically to validate the data contained by the value parameter. Since validate() might be called repeatedly, avoid adding code that takes a long time to complete

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

Parameters:
value
the value to be validated
property
the property the value relates to
Returns:
true if valid otherwise false


The documentation was generated from the following file:


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