套件 | 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, 03:47 PM Z