包 | 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
将此值设置为 false 将停止验证程序执行验证操作。 | Validator | ||
isLastStateValid : Boolean = true
This property returns a True value if the last state of validator was valid. | MultiTriggerValidator | ||
listener : Object
指定验证侦听器。 | Validator | ||
property : String
一个字符串,用于指定包含要验证的值的 source 对象的属性名称。 | Validator | ||
required : Boolean = true
如果为 true,则指定缺少值或空值将导致验证错误。 | Validator | ||
requiredFieldError : String
缺少值和 required 属性为 true 时的错误消息。 | Validator | ||
source : Object
指定包含要验证的属性的对象。 | Validator | ||
trigger : IEventDispatcher
指定生成触发验证程序的组件。 | Validator | ||
triggerEvent : String
指定触发验证的事件。 | 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 | ||
如果 Validator 是使用 MXML 标签创建的,则由 MXML 编译器自动调用。 | Validator | ||
This method returns a True value if any of the triggers have failed. | MultiTriggerValidator | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
执行验证并(可选)将结果通知给侦听器。 | Validator | ||
[静态]
调用验证程序数组中的所有验证程序。 | 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, 11:04 AM Z