| Paquete | mx.validators |
| Clase | public class ValidationResult |
| Herencia | ValidationResult Object |
| Subclases | RegExpValidationResult |
| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The ValidationResultEvent class defines the event object
that is passed to event listeners for the valid
and invalid validator events.
The class also defines the results property,
which contains an Array of ValidationResult objects,
one for each field examined by the validator.
This lets you access the ValidationResult objects
from within an event listener.
Elementos de API relacionados
| Propiedad | Definido por | ||
|---|---|---|---|
![]() | constructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | Object | |
| errorCode : String
The validation error code
if the value of the isError property is true. | ValidationResult | ||
| errorMessage : String
The validation error message
if the value of the isError property is true. | ValidationResult | ||
| isError : Boolean
Contains true if the field generated a validation failure. | ValidationResult | ||
| subField : String
The name of the subfield that the result is associated with. | ValidationResult | ||
| Método | Definido por | ||
|---|---|---|---|
ValidationResult(isError:Boolean, subField:String = "", errorCode:String = "", errorMessage:String = "")
Constructor
| ValidationResult | ||
![]() |
Indica si un objeto tiene definida una propiedad especificada. | Object | |
![]() |
Indica si hay una instancia de la clase Object en la cadena de prototipo del objeto especificado como parámetro. | Object | |
![]() |
Indica si existe la propiedad especificada y si es enumerable. | Object | |
![]() |
Establece la disponibilidad de una propiedad dinámica para operaciones de bucle. | Object | |
![]() |
Devuelve la representación de cadena de este objeto, con formato según las convenciones específicas de configuración regional. | Object | |
![]() |
Devuelve la representación de cadena del objeto especificado. | Object | |
![]() |
Devuelve el valor simple del objeto especificado. | Object | |
errorCode | propiedad |
public var errorCode:String| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The validation error code
if the value of the isError property is true.
errorMessage | propiedad |
public var errorMessage:String| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The validation error message
if the value of the isError property is true.
isError | propiedad |
public var isError:Boolean| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Contains true if the field generated a validation failure.
subField | propiedad |
public var subField:String| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
The name of the subfield that the result is associated with. Some validators, such as CreditCardValidator and DateValidator, validate multiple subfields at the same time.
ValidationResult | () | Información sobre |
public function ValidationResult(isError:Boolean, subField:String = "", errorCode:String = "", errorMessage:String = "")| Versión del lenguaje: | ActionScript 3.0 |
| Versión de producto: | Flex 3 |
| Versiones de motor de ejecución: | Flash Player 9, AIR 1.1 |
Constructor
ParámetrosisError:Boolean — Pass true if there was a validation error.
| |
subField:String (default = "") — Name of the subfield of the validated Object.
| |
errorCode:String (default = "") — Validation error code.
| |
errorMessage:String (default = "") — Validation error message.
|
Tue Jun 12 2018, 02:12 PM Z
Ocultar propiedades públicas heredadas
Mostrar propiedades públicas heredadas