包 | com.adobe.livecycle.rca.service |
类 | public class DefaultResponder |
继承 | DefaultResponder Object |
实现 | IResponder |
自以下版本起不推荐使用: Review, Commenting, and Approval 10New Review, Commenting, and Approval APIs dont use a default responder.
语言版本: | ActionScript 3.0 |
产品版本: | Review, Commenting, and Approval Building Block 9.5 |
运行时版本: | Flash Player 9, Flash Player 10, AIR (unsupported) |
IResponder
and allows a result and fault handler to be defined. Use this class
instead of defining these functions everywhere an asynchronous call is made.
公共方法
方法 | 由以下参数定义 | ||
---|---|---|---|
Constructs a DefaultResponder based on the specified result and fault handlers. | DefaultResponder | ||
This method is called by a service when an error has been received. | DefaultResponder | ||
表示对象是否已经定义了指定的属性。 | Object | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
This method is called by a service when the return value
has been received. | DefaultResponder | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object |
构造函数详细信息
DefaultResponder | () | 构造函数 |
public function DefaultResponder(resultHandler:Function, faultHandler:Function)
语言版本: | ActionScript 3.0 |
产品版本: | Review, Commenting, and Approval Building Block 9.5 |
运行时版本: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Constructs a DefaultResponder
based on the specified result and fault handlers.
resultHandler:Function — Optional function to call when the asynchronous operation is successful.
| |
faultHandler:Function — Optional function to call when the asynchronous operation fails.
|
方法详细信息
fault | () | 方法 |
public function fault(info:Object):void
语言版本: | ActionScript 3.0 |
产品版本: | Review, Commenting, and Approval Building Block 9.5 |
运行时版本: | Flash Player 9, Flash Player 10, AIR (unsupported) |
This method is called by a service when an error has been received.
While info
is typed as Object it is often
(but not always) an mx.rpc.events.FaultEvent.
参数
info:Object |
result | () | 方法 |
public function result(data:Object):void
语言版本: | ActionScript 3.0 |
产品版本: | Review, Commenting, and Approval Building Block 9.5 |
运行时版本: | Flash Player 9, Flash Player 10, AIR (unsupported) |
This method is called by a service when the return value
has been received.
While data
is typed as Object, it is often
(but not always) an mx.rpc.events.ResultEvent.
参数
data:Object |
Tue Jun 12 2018, 11:04 AM Z