Pakiet | com.adobe.solutions.acm.authoring.presentation.common |
Klasa | public class MultiTriggerValidator |
Dziedziczenie | MultiTriggerValidator Validator EventDispatcher Object |
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Asset Composer Building Block 10 |
Wersje środowiska wykonawczego: | AIR (unsupported), Flash Player 10.2 |
Właściwości publiczne
Właściwość | Zdefiniowane przez | ||
---|---|---|---|
constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | ||
enabled : Boolean
Setting this value to false will stop the validator
from performing validation. | Validator | ||
isLastStateValid : Boolean = true
The flag that returns true indicating that the last validation performed by this validator
was valid. | MultiTriggerValidator | ||
listener : Object
Specifies the validation listener. | Validator | ||
property : String
A String specifying the name of the property
of the source object that contains
the value to validate. | Validator | ||
required : Boolean = true
If true, specifies that a missing or empty
value causes a validation error. | Validator | ||
requiredFieldError : String
Error message when a value is missing and the
required property is true. | Validator | ||
source : Object
Specifies the object containing the property to validate. | Validator | ||
trigger : IEventDispatcher
Specifies the component generating the event that triggers the validator. | Validator | ||
triggerEvent : String
Specifies the event that triggers the validation. | Validator | ||
triggerEvents : Array
Returns array of events on which this Validators triggeres the validation. | MultiTriggerValidator |
Właściwości chronione
Metody publiczne
Metoda | Zdefiniowane przez | ||
---|---|---|---|
Constructor
| MultiTriggerValidator | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu. | EventDispatcher | ||
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń. | EventDispatcher | ||
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń. | EventDispatcher | ||
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | ||
Called automatically by the MXML compiler when the Validator
is created using an MXML tag. | Validator | ||
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 | ||
Usuwa detektor z obiektu EventDispatcher. | EventDispatcher | ||
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 | ||
[przesłanianie]
Performs validation and optionally notifies
the listeners of the result. | MultiTriggerValidator | ||
[statyczny]
Invokes all the validators in the validators Array. | Validator | ||
Zwraca pierwotną wartość dla określonego obiektu. | Object | ||
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych. | EventDispatcher |
Metody chronione
Zdarzenia
Stałe chronione
Szczegół właściwości
isLastStateValid | właściwość |
public var isLastStateValid:Boolean = true
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Asset Composer Building Block 10 |
Wersje środowiska wykonawczego: | AIR (unsupported), Flash Player 10.2 |
The flag that returns true indicating that the last validation performed by this validator was valid.
Wartością domyślną jest true.
triggerEvents | właściwość |
triggerEvents:Array
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Asset Composer Building Block 10 |
Wersje środowiska wykonawczego: | AIR (unsupported), Flash Player 10.2 |
Returns array of events on which this Validators triggeres the validation.
Implementacja
public function get triggerEvents():Array
public function set triggerEvents(value:Array):void
Konstruktor Szczegół
MultiTriggerValidator | () | Konstruktor |
public function MultiTriggerValidator()
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Asset Composer Building Block 10.0 |
Wersje środowiska wykonawczego: | AIR (unsupported), Flash Player 10.2 |
Constructor
Szczegół metody
validate | () | metoda |
override public function validate(value:Object = null, suppressEvents:Boolean = false):ValidationResultEvent
Wersja języka: | ActionScript 3.0 |
Wersja produktu: | Asset Composer Building Block 10 |
Wersje środowiska wykonawczego: | AIR (unsupported), Flash Player 10.2 |
Performs validation and optionally notifies the listeners of the result.
Parametry
value:Object (default = null ) — Optional value to validate.
If null, then the validator uses the source and
property properties to determine the value.
If you specify this argument, you should also set the
listener property to specify the target component
for any validation error messages.
| |
suppressEvents:Boolean (default = false ) — If false , then after validation,
the validator will notify the listener of the result.
|
ValidationResultEvent — A ValidationResultEvent object
containing the results of the validation.
For a successful validation, the
ValidationResultEvent.results Array property is empty.
For a validation failure, the
ValidationResultEvent.results Array property contains
one ValidationResult object for each field checked by the validator,
both for fields that failed the validation and for fields that passed.
Examine the ValidationResult.isError
property to determine if the field passed or failed the validation.
|
Tue Jun 12 2018, 12:06 PM Z