套件 | com.adobe.solutions.rca.presentation.util |
類別 | public class MultiTriggerValidator |
繼承 | MultiTriggerValidator Validator EventDispatcher Object |
子類別 | EndDateOrderValidator, StartDateOrderValidator |
語言版本: | ActionScript 3.0 |
產品版本: | Review, Commenting, and Approval Building Block 10.0 |
執行階段版本: | 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.
公用屬性
屬性 | 定義自 | ||
---|---|---|---|
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | 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 |
公用方法
方法 | 定義自 | ||
---|---|---|---|
The constructor for MultiTriggerValidator class. | MultiTriggerValidator | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | 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 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
Performs validation and optionally notifies
the listeners of the result. | Validator | ||
[靜態]
Invokes all the validators in the validators Array. | Validator | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
屬性詳細資訊
isLastStateValid | 屬性 |
public var isLastStateValid:Boolean = true
語言版本: | ActionScript 3.0 |
產品版本: | Review, Commenting, and Approval Building Block 10.0 |
執行階段版本: | Flash Player 10.2, AIR (unsupported) |
This property returns a True
value if the last state of validator was valid.
triggerEvents | 屬性 |
建構函式詳細資料
MultiTriggerValidator | () | 建構函式 |
public function MultiTriggerValidator()
語言版本: | ActionScript 3.0 |
產品版本: | Review, Commenting, and Approval Building Block 10.0 |
執行階段版本: | Flash Player 10.2, AIR (unsupported) |
The constructor for MultiTriggerValidator
class.
方法詳細資訊
isError | () | 方法 |
public function isError(result:Array):Boolean
語言版本: | ActionScript 3.0 |
產品版本: | Review, Commenting, and Approval Building Block 10.0 |
執行階段版本: | Flash Player 10.2, AIR (unsupported) |
This method returns a True
value if any of the triggers have failed.
參數
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, 03:47 PM Z