Referência do ActionScript® 3.0 para Adobe® Flash® Platform
Início  |  Ocultar listas de Pacotes e Classes |  Pacotes  |  Classes  |  Novidades  |  Índice  |  Apêndices  |  Por que inglês?
Filtros: Recuperando dados do servidor...
Recuperando dados do servidor...
com.adobe.fiber.styles 

StyleValidator  - AS3 ADEP Data Services

Pacotecom.adobe.fiber.styles
Classepublic class StyleValidator
HerançaStyleValidator Inheritance Validator Inheritance EventDispatcher Inheritance Object

Versão da linguagem: ActionScript 3.0
Versão de produto: Adobe Digital Enterprise Platform Data Services for Java EE 3
Versões de runtime: Flash Player 9, AIR 1.1

A wrapper around mx.validators.Validator that enables runtime customization of the function used for validation, doValidation. The wrapper also sets the required flag on the wrapped validator to false as generated value objects perform required validation outside of the validators. Validators are used by styles to calculate validation expressions and for exposing built-in validators such as social security number, credit card number, email, and so forth.



Propriedades públicas
 PropriedadeDefinido por
 Inheritedconstructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto.
Object
 Inheritedenabled : Boolean
Setting this value to false will stop the validator from performing validation.
Validator
 Inheritedlistener : Object
Specifies the validation listener.
Validator
 Inheritedproperty : String
A String specifying the name of the property of the source object that contains the value to validate.
Validator
 Inheritedrequired : Boolean = true
If true, specifies that a missing or empty value causes a validation error.
Validator
 InheritedrequiredFieldError : String
Error message when a value is missing and the required property is true.
Validator
 Inheritedsource : Object
Specifies the object containing the property to validate.
Validator
 Inheritedtrigger : IEventDispatcher
Specifies the component generating the event that triggers the validator.
Validator
 InheritedtriggerEvent : String
Specifies the event that triggers the validation.
Validator
Propriedades protegidas
 PropriedadeDefinido por
 InheritedactualListeners : Array
[somente leitura] Contains an Array of listener objects, if any, or the source object.
Validator
 InheritedactualTrigger : IEventDispatcher
[somente leitura] Contains the trigger object, if any, or the source object.
Validator
 InheritedresourceManager : IResourceManager
[somente leitura] A reference to the object which manages all of the application's localized resources.
Validator
 InheritedsubFields : Array
An Array of Strings containing the names for the properties contained in the value Object passed to the validate() method.
Validator
Métodos públicos
 MétodoDefinido por
  
StyleValidator(validationFunction:Function)
Default constructor.
StyleValidator
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra um objeto de ouvinte de evento em um objeto EventDispatcher, de forma que o ouvinte receba a notificação de um evento.
EventDispatcher
 Inherited
Envia um evento para o fluxo de eventos.
EventDispatcher
 Inherited
Verifica se o objeto EventDispatcher tem ouvintes registrados para um tipo específico de evento.
EventDispatcher
 Inherited
Indica se um objeto tem uma propriedade especificada definida.
Object
 Inherited
Called automatically by the MXML compiler when the Validator is created using an MXML tag.
Validator
 Inherited
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro.
Object
 Inherited
Indica se a propriedade especificada existe e é enumerável.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Remove um ouvinte do objeto EventDispatcher.
EventDispatcher
 Inherited
Define a disponibilidade de uma propriedade dinâmica para operações de repetição.
Object
 Inherited
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade.
Object
 Inherited
Retorna a representação de string do objeto especificado.
Object
 Inherited
validate(value:Object = null, suppressEvents:Boolean = false):ValidationResultEvent
Performs validation and optionally notifies the listeners of the result.
Validator
 Inherited
validateAll(validators:Array):Array
[estático] Invokes all the validators in the validators Array.
Validator
 Inherited
Retorna o valor primitivo do objeto especificado.
Object
 Inherited
Verifica se um ouvinte de evento está registrado nesse objeto EventDispatcher ou em qualquer um de seus ancestrais para o tipo de evento especificado.
EventDispatcher
Métodos protegidos
 MétodoDefinido por
 Inherited
Sets up all of the listeners for the valid and invalid events dispatched from the validator.
Validator
  
[substituir] Executes the validation logic of this validator, including validating that a missing or empty value causes a validation error as defined by the value of the required property.
StyleValidator
 Inherited
Returns the Object to validate.
Validator
 Inherited
Returns a ValidationResultEvent from the Array of error results.
Validator
 Inherited
Returns true if value is not null.
Validator
 Inherited
Disconnects all of the listeners for the valid and invalid events dispatched from the validator.
Validator
 Inherited
This method is called when a Validator is constructed, and again whenever the ResourceManager dispatches a "change" Event to indicate that the localized resources have changed in some way.
Validator
Eventos
 Evento Resumo Definido por
 Inherited[transmissão de evento] Despachado quando o Flash Player ou o aplicativo do AIR ganha o foco do sistema operacional e está se tornando inativo.EventDispatcher
 Inherited[transmissão de evento] Despachado quando o Flash Player ou o aplicativo do AIR perde o foco do sistema operacional e está se tornando inativo.EventDispatcher
 InheritedDispatched when validation fails.Validator
 InheritedDispatched when validation succeeds.Validator
Detalhes do construtor

StyleValidator

()Construtor
public function StyleValidator(validationFunction:Function)

Versão da linguagem: ActionScript 3.0
Versão de produto: Adobe Digital Enterprise Platform Data Services for Java EE 3
Versões de runtime: Flash Player 9, AIR 1.1

Default constructor.

Parâmetros
validationFunction:Function — function to use for the doValidation method of the validator.
Detalhes do método

doValidation

()método
override protected function doValidation(value:Object):Array

Versão da linguagem: ActionScript 3.0
Versão de produto: Adobe Digital Enterprise Platform Data Services for Java EE 3
Versões de runtime: Flash Player 9, AIR 1.1

Executes the validation logic of this validator, including validating that a missing or empty value causes a validation error as defined by the value of the required property.

If you create a subclass of a validator class, you must override this method.

Parâmetros

value:Object — Value to validate.

Retorna
Array — For an invalid result, an Array of ValidationResult objects, with one ValidationResult object for each field examined by the validator that failed validation.




[ X ]Por que inglês?
O conteúdo na Referência do ActionScript 3.0 aparece em inglês

Nem todas as partes da Referência do ActionScript 3.0 estão traduzidas em todos os idiomas. Quando um elemento de um idioma não está traduzido, ele é exibido em inglês. Por exemplo, a classe ga.controls.HelpBox não está traduzida em nenhum idioma. Por isso, na versão da referência em português do Brasil, a classe ga.controls.HelpBox é exibida em inglês.