Pacchetto | com.adobe.solutions.rca.presentation.util |
Classe | public class MultiTriggerValidator |
Ereditarietà | MultiTriggerValidator ![]() ![]() ![]() |
Sottoclassi | EndDateOrderValidator, StartDateOrderValidator |
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Blocco costitutivo Review, Commenting, and Approval 10.0 |
Versioni runtime: | Flash Player 10.2, AIR (unsupported) |
triggerEvent
. User can specify only one event name.
This class allows you to provide an array of event names each of which triggers the validation.
Proprietà pubbliche
Proprietà | Definito da | ||
---|---|---|---|
![]() | constructor : Object
Un riferimento all'oggetto classe o alla funzione di costruzione per una determinata istanza di oggetto. | Object | |
![]() | enabled : Boolean
Setting this value to false will stop the validator
from performing validation. | Validator | |
isLastStateValid : Boolean = true
This property returns a True value if the last state of 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
This property refers to list of triggers. | MultiTriggerValidator |
Proprietà protette
Metodi pubblici
Metodo | Definito da | ||
---|---|---|---|
The constructor for MultiTriggerValidator class. | MultiTriggerValidator | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un oggetto listener di eventi con un oggetto EventDispatcher, in modo che il listener riceva la notifica di un evento. | EventDispatcher | |
![]() |
Invia un evento nel flusso di eventi. | EventDispatcher | |
![]() |
Verifica se per l'oggetto EventDispatcher sono presenti listener registrati per un tipo specifico di evento. | EventDispatcher | |
![]() |
Indica se per un oggetto è definita una proprietà specifica. | Object | |
![]() |
Called automatically by the MXML compiler when the Validator
is created using an MXML tag. | Validator | |
This method returns a True value if any of the triggers have failed. | MultiTriggerValidator | ||
![]() |
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | |
![]() |
Indica se la proprietà specificata esiste ed è enumerabile. | Object | |
![]() |
Rimuove un listener dall'oggetto EventDispatcher. | EventDispatcher | |
![]() |
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | |
![]() |
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | |
![]() |
Restituisce la rappresentazione in formato stringa dell'oggetto specificato. | Object | |
![]() |
Performs validation and optionally notifies
the listeners of the result. | Validator | |
![]() | [statico]
Invokes all the validators in the validators Array. | Validator | |
![]() |
Restituisce il valore di base dell'oggetto specificato. | Object | |
![]() |
Verifica se un listener di eventi è registrato con questo oggetto EventDispatcher o qualsiasi suo antenato per il tipo di evento specificato. | EventDispatcher |
Metodi protetti
Eventi
Costanti protette
Descrizione delle proprietà
isLastStateValid | proprietà |
public var isLastStateValid:Boolean = true
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Blocco costitutivo Review, Commenting, and Approval 10.0 |
Versioni runtime: | Flash Player 10.2, AIR (unsupported) |
This property returns a True
value if the last state of validator was valid.
triggerEvents | proprietà |
triggerEvents:Array
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Blocco costitutivo Review, Commenting, and Approval 10.0 |
Versioni runtime: | Flash Player 10.2, AIR (unsupported) |
This property refers to list of triggers.
Implementazione
public function get triggerEvents():Array
public function set triggerEvents(value:Array):void
Descrizione della funzione di costruzione
MultiTriggerValidator | () | Funzione di costruzione |
public function MultiTriggerValidator()
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Blocco costitutivo Review, Commenting, and Approval 10.0 |
Versioni runtime: | Flash Player 10.2, AIR (unsupported) |
The constructor for MultiTriggerValidator
class.
Descrizione dei metodi
isError | () | metodo |
public function isError(result:Array):Boolean
Versione linguaggio: | ActionScript 3.0 |
Versione prodotto: | Blocco costitutivo Review, Commenting, and Approval 10.0 |
Versioni runtime: | Flash Player 10.2, AIR (unsupported) |
This method returns a True
value if any of the triggers have failed.
Parametri
result:Array — An array storing the execution results for all the triggers.
|
Boolean — It returns a True value, if all triggers have passed. Otherwise a False value is returned.
|
Tue Jun 12 2018, 02:44 PM Z