套件 | 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 [唯讀]
Provides access to the associated message. | AsyncToken | ||
operationName : String [唯讀]
Specifies the operation name. | RCAToken | ||
responders : Array [唯讀]
An array of IResponder handlers that will be called when
the asynchronous request completes. | AsyncToken | ||
result : Object [唯讀]
The result that was returned by the associated RPC call. | 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 | ||
Determines if this token has at least one mx.rpc.IResponder registered. | 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, 03:47 PM Z