パッケージ | com.adobe.livecycle.rca.token |
インターフェイス | public interface IAsyncToken |
実装者 | RCAToken |
以降、非推奨 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) |
By using an interface for basic token operations, methods can return different types of tokens without the caller needing to know what kind of token it is.
The caller may expect the token's success or fault handlers to be called depending on the result of the method call.
パブリックメソッド
メソッド | 定義元 | ||
---|---|---|---|
Adds a fault handler to this token. | IAsyncToken | ||
Adds success and fault handlers to this token. | IAsyncToken | ||
Adds a responder to this token. | IAsyncToken | ||
Adds a success handler to this token. | IAsyncToken |
メソッドの詳細
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 | () | メソッド |
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) .
|
Tue Jun 12 2018, 10:34 AM Z