| Pakiet | mx.validators |
| Klasa | public class ValidationResult |
| Dziedziczenie | ValidationResult Object |
| Podklasy | RegExpValidationResult |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | 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.
Powiązane elementy interfejsu API
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
![]() | constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | 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 | ||
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
ValidationResult(isError:Boolean, subField:String = "", errorCode:String = "", errorMessage:String = "")
Constructor
| ValidationResult | ||
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | Object | |
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
errorCode | właściwość |
public var errorCode:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
The validation error code
if the value of the isError property is true.
errorMessage | właściwość |
public var errorMessage:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
The validation error message
if the value of the isError property is true.
isError | właściwość |
public var isError:Boolean| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Contains true if the field generated a validation failure.
subField | właściwość |
public var subField:String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | 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 | () | Konstruktor |
public function ValidationResult(isError:Boolean, subField:String = "", errorCode:String = "", errorMessage:String = "")| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 3 |
| Wersje środowiska wykonawczego: | Flash Player 9, AIR 1.1 |
Constructor
ParametryisError: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, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne