Paquete | com.adobe.solutions.acm.authoring.presentation.common |
Clase | public class MultiTriggerValidator |
Herencia | MultiTriggerValidator Validator EventDispatcher Object |
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 10 |
Versiones de motor de ejecución: | AIR (unsupported), Flash Player 10.2 |
Propiedades públicas
Propiedad | Definido por | ||
---|---|---|---|
constructor : Object
Una referencia a la clase de objeto o función constructora para una instancia de objeto determinada. | 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 |
Propiedades protegidas
Métodos públicos
Método | Definido por | ||
---|---|---|---|
Constructor
| MultiTriggerValidator | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento. | EventDispatcher | ||
Distribuye un evento en el flujo del evento. | EventDispatcher | ||
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento. | EventDispatcher | ||
Indica si un objeto tiene definida una propiedad especificada. | Object | ||
Called automatically by the MXML compiler when the Validator
is created using an MXML tag. | Validator | ||
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 | ||
Elimina un detector del objeto EventDispatcher. | EventDispatcher | ||
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 | ||
[override]
Performs validation and optionally notifies
the listeners of the result. | MultiTriggerValidator | ||
[estática]
Invokes all the validators in the validators Array. | Validator | ||
Devuelve el valor simple del objeto especificado. | Object | ||
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto. | EventDispatcher |
Métodos protegidos
Eventos
Constantes protegidas
Información sobre propiedades
isLastStateValid | propiedad |
public var isLastStateValid:Boolean = true
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 10 |
Versiones de motor de ejecución: | AIR (unsupported), Flash Player 10.2 |
The flag that returns true indicating that the last validation performed by this validator was valid.
El valor predeterminado es true.
triggerEvents | propiedad |
triggerEvents:Array
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 10 |
Versiones de motor de ejecución: | AIR (unsupported), Flash Player 10.2 |
Returns array of events on which this Validators triggeres the validation.
Implementación
public function get triggerEvents():Array
public function set triggerEvents(value:Array):void
Información sobre constructores
MultiTriggerValidator | () | Información sobre |
public function MultiTriggerValidator()
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 10.0 |
Versiones de motor de ejecución: | AIR (unsupported), Flash Player 10.2 |
Constructor
Información sobre métodos
validate | () | método |
override public function validate(value:Object = null, suppressEvents:Boolean = false):ValidationResultEvent
Versión del lenguaje: | ActionScript 3.0 |
Versión de producto: | Bloque de construcción Asset Composer 10 |
Versiones de motor de ejecución: | AIR (unsupported), Flash Player 10.2 |
Performs validation and optionally notifies the listeners of the result.
Parámetros
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, 02:12 PM Z