Paket | com.adobe.solutions.acm.authoring.presentation.common |
Sınıf | public class MultiTriggerValidator |
Miras Alma | MultiTriggerValidator Validator EventDispatcher Object |
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Composer Building Block 10 |
Çalışma Zamanı Sürümleri: | AIR (unsupported), Flash Player 10.2 |
Genel Özellikler
Özellik | Tanımlayan: | ||
---|---|---|---|
constructor : Object
Belirli bir nesne örneği için sınıf nesnesine veya yapıcı işlevine bir başvuru. | 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 |
Korunan Özellikler
Genel Yöntemler
Yöntem | Tanımlayan: | ||
---|---|---|---|
Constructor
| MultiTriggerValidator | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
EventDispatcher nesnesi olan bir olay dinleyici nesnesini, dinleyicinin bir olayın bildirimini alması için kaydeder. | EventDispatcher | ||
Olay akışına bir olay gönderir. | EventDispatcher | ||
EventDispatcher nesnesinin belirli bir olay türü için kayıtlı dinleyicisi olup olmadığını kontrol eder. | EventDispatcher | ||
Bir nesnenin belirli bir özelliğinin tanımlı olup olmadığını gösterir. | Object | ||
Called automatically by the MXML compiler when the Validator
is created using an MXML tag. | Validator | ||
Object sınıfının bir örneğinin parametre olarak belirtilen nesnenin prototip zincirinde olup olmadığını gösterir. | Object | ||
Belirtilen özelliğin bulunup bulunmadığını ve numaralandırılabilir olup olmadığını gösterir. | Object | ||
EventDispatcher nesnesinden bir dinleyiciyi kaldırır. | EventDispatcher | ||
Dinamik bir özelliğin döngü işlemlerinde kullanılabilirliğini ayarlar. | Object | ||
Bu nesnenin, yerel ayara özel kurallara göre biçimlendirilmiş dize temsilini döndürür. | Object | ||
Belirtilen nesnenin dize olarak temsil edilen halini döndürür. | Object | ||
[geçersiz kıl]
Performs validation and optionally notifies
the listeners of the result. | MultiTriggerValidator | ||
[statik]
Invokes all the validators in the validators Array. | Validator | ||
Belirtilen nesnenin temel değerini döndürür. | Object | ||
Bir olay dinleyicisinin bu EventDispatcher nesnesiyle mi, yoksa onun belirtilen olay türüne yönelik üst öğelerinden biriyle mi kayıtlı olduğunu kontrol eder. | EventDispatcher |
Korunan Yöntemler
Olaylar
Özellik Ayrıntısı
isLastStateValid | özellik |
public var isLastStateValid:Boolean = true
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Composer Building Block 10 |
Çalışma Zamanı Sürümleri: | AIR (unsupported), Flash Player 10.2 |
The flag that returns true indicating that the last validation performed by this validator was valid.
Varsayılan değer şudur true.
triggerEvents | özellik |
triggerEvents:Array
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Composer Building Block 10 |
Çalışma Zamanı Sürümleri: | AIR (unsupported), Flash Player 10.2 |
Returns array of events on which this Validators triggeres the validation.
Uygulama
public function get triggerEvents():Array
public function set triggerEvents(value:Array):void
Yapıcı Ayrıntı
MultiTriggerValidator | () | Yapıcı |
public function MultiTriggerValidator()
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Composer Building Block 10.0 |
Çalışma Zamanı Sürümleri: | AIR (unsupported), Flash Player 10.2 |
Constructor
Yöntem Ayrıntısı
validate | () | yöntem |
override public function validate(value:Object = null, suppressEvents:Boolean = false):ValidationResultEvent
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Asset Composer Building Block 10 |
Çalışma Zamanı Sürümleri: | AIR (unsupported), Flash Player 10.2 |
Performs validation and optionally notifies the listeners of the result.
Parametreler
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, 01:09 PM Z