Paket | com.adobe.solutions.rca.presentation.util |
Sınıf | public class MultiTriggerValidator |
Miras Alma | MultiTriggerValidator Validator EventDispatcher Object |
Alt Sınıflar | EndDateOrderValidator, StartDateOrderValidator |
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Review, Commenting, and Approval Building Block 10.0 |
Çalışma Zamanı Sürümleri: | 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.
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
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 |
Korunan Özellikler
Genel Yöntemler
Yöntem | Tanımlayan: | ||
---|---|---|---|
The constructor for MultiTriggerValidator class. | 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 | ||
This method returns a True value if any of the triggers have failed. | MultiTriggerValidator | ||
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 | ||
Performs validation and optionally notifies
the listeners of the result. | Validator | ||
[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ü: | Review, Commenting, and Approval Building Block 10.0 |
Çalışma Zamanı Sürümleri: | Flash Player 10.2, AIR (unsupported) |
This property returns a True
value if the last state of validator was valid.
triggerEvents | özellik |
triggerEvents:Array
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Review, Commenting, and Approval Building Block 10.0 |
Çalışma Zamanı Sürümleri: | Flash Player 10.2, AIR (unsupported) |
This property refers to list of triggers.
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ü: | Review, Commenting, and Approval Building Block 10.0 |
Çalışma Zamanı Sürümleri: | Flash Player 10.2, AIR (unsupported) |
The constructor for MultiTriggerValidator
class.
Yöntem Ayrıntısı
isError | () | yöntem |
public function isError(result:Array):Boolean
Dil Sürümü: | ActionScript 3.0 |
Ürün Sürümü: | Review, Commenting, and Approval Building Block 10.0 |
Çalışma Zamanı Sürümleri: | Flash Player 10.2, AIR (unsupported) |
This method returns a True
value if any of the triggers have failed.
Parametreler
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, 01:09 PM Z