包 | com.adobe.solutions.acm.authoring.presentation.common |
类 | public class MultiTriggerValidator |
继承 | MultiTriggerValidator Validator EventDispatcher Object |
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
公共属性
属性 | 由以下参数定义 | ||
---|---|---|---|
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
enabled : Boolean
将此值设置为 false 将停止验证程序执行验证操作。 | Validator | ||
isLastStateValid : Boolean = true
The flag that returns true indicating that the last validation performed by this 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
Returns array of events on which this Validators triggeres the validation. | MultiTriggerValidator |
受保护的属性
公共方法
方法 | 由以下参数定义 | ||
---|---|---|---|
Constructor
| 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 | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
[覆盖]
Performs validation and optionally notifies
the listeners of the result. | MultiTriggerValidator | ||
[静态]
调用验证程序数组中的所有验证程序。 | Validator | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
受保护的方法
受保护的常量
属性详细信息
isLastStateValid | 属性 |
public var isLastStateValid:Boolean = true
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The flag that returns true indicating that the last validation performed by this validator was valid.
默认值为 true。
triggerEvents | 属性 |
构造函数详细信息
MultiTriggerValidator | () | 构造函数 |
public function MultiTriggerValidator()
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10.0 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Constructor
方法详细信息
validate | () | 方法 |
override public function validate(value:Object = null, suppressEvents:Boolean = false):ValidationResultEvent
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Performs validation and optionally notifies the listeners of the result.
参数
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, 11:04 AM Z