包 | com.adobe.livecycle.rca.token |
类 | public class RCAToken |
继承 | RCAToken AsyncToken EventDispatcher Object |
实现 | IAsyncToken |
自以下版本起不推荐使用: Review, Commenting, and Approval 10New Review, Commenting, and Approval APIs use mx.rpc.AsyncToken
语言版本: | ActionScript 3.0 |
产品版本: | Review, Commenting, and Approval Building Block 9.5 |
运行时版本: | Flash Player 9, Flash Player 10, AIR (unsupported) |
公共属性
属性 | 由以下参数定义 | ||
---|---|---|---|
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
message : IMessage [只读]
提供对关联消息的访问。 | AsyncToken | ||
operationName : String [只读]
Specifies the operation name. | RCAToken | ||
responders : Array [只读]
异步请求完成时将要调用的 IResponder 处理程序数组。 | AsyncToken | ||
result : Object [只读]
关联的 RPC 调用返回的结果。 | AsyncToken |
公共方法
方法 | 由以下参数定义 | ||
---|---|---|---|
Constructs a RCAToken. | RCAToken | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。 | EventDispatcher | ||
Adds a fault handler to this token. | RCAToken | ||
Adds success and fault handlers to this token. | RCAToken | ||
[覆盖]
Adds a responder to this token. | RCAToken | ||
Adds a success handler to this token. | RCAToken | ||
Calls all fault handlers that are associated with this token. | RCAToken | ||
Calls all success handlers that are associated with this token. | RCAToken | ||
将事件调度到事件流中。 | EventDispatcher | ||
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。 | EventDispatcher | ||
表示对象是否已经定义了指定的属性。 | Object | ||
确定此标记是否至少具有一个注册的 mx.rpc.IResponder。 | AsyncToken | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
从 EventDispatcher 对象中删除侦听器。 | EventDispatcher | ||
设置循环操作动态属性的可用性。 | Object | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object | ||
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。 | EventDispatcher |
属性详细信息
operationName | 属性 |
构造函数详细信息
RCAToken | () | 构造函数 |
public function RCAToken(operationName:String = "", message:IMessage = null)
语言版本: | ActionScript 3.0 |
产品版本: | Review, Commenting, and Approval Building Block 9.5 |
运行时版本: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Constructs a RCAToken
.
operationName:String (default = " ") — Name of the operation associated with the token. Used for debugging.
| |
message:IMessage (default = null ) — The message that the token is associated with.
|
方法详细信息
addFaultHandler | () | 方法 |
public function addFaultHandler(fault:Function):void
语言版本: | ActionScript 3.0 |
产品版本: | Review, Commenting, and Approval Building Block 9.5 |
运行时版本: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Adds a fault handler to this token.
参数
fault:Function — The function to call on fault. Can be null, but ignoring a possible fault is not recommended unless
you are certain the call cannot fail. The expected function signature is function(fault:Object) .
|
addHandlers | () | 方法 |
public function addHandlers(success:Function, fault:Function):void
语言版本: | ActionScript 3.0 |
产品版本: | Review, Commenting, and Approval Building Block 9.5 |
运行时版本: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Adds success and fault handlers to this token. Adding handlers is more convenient than explicitly calling addSuccessHandler()
and addFaultHandler() after receiving an IToken. Instead, you can use
asyncMethod().addHandlers(function(event:ResultEvent){}, function(event:FaultEvent){});
参数
success:Function — The function to call on success. Can be null, but in most cases, you want to call a function on success.
The expected function signature is function(data:Object) .
| |
fault:Function — The function to call on fault. Can be null, but ignoring a fault is not recommended unless
you are certain that the call cannot fail. The expected function signature is function(fault:Object) .
|
addResponder | () | 方法 |
override public function addResponder(responder:IResponder):void
语言版本: | ActionScript 3.0 |
产品版本: | Review, Commenting, and Approval Building Block 9.5 |
运行时版本: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Adds a responder to this token.
参数
responder:IResponder — The responder to add. This responder defines a result or success handler to call on success, and a fault handler to call on fault.
|
addSuccessHandler | () | 方法 |
public function addSuccessHandler(success:Function):void
语言版本: | ActionScript 3.0 |
产品版本: | Review, Commenting, and Approval Building Block 9.5 |
运行时版本: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Adds a success handler to this token.
参数
success:Function — The function to call on success. Can be null, but in most cases, you want to call a function on success.
The expected function signature is function(data:Object) .
|
callFaultHandlers | () | 方法 |
public function callFaultHandlers(fault:Object):void
语言版本: | ActionScript 3.0 |
产品版本: | Review, Commenting, and Approval Building Block 9.5 |
运行时版本: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Calls all fault handlers that are associated with this token.
参数
fault:Object — The fault to pass to each fault handler invocation.
|
callSuccessHandlers | () | 方法 |
public function callSuccessHandlers(data:Object):void
语言版本: | ActionScript 3.0 |
产品版本: | Review, Commenting, and Approval Building Block 9.5 |
运行时版本: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Calls all success handlers that are associated with this token.
参数
data:Object — The data to pass to each success handler invocation.
|
Tue Jun 12 2018, 11:04 AM Z