套件 | com.adobe.gravity.utility.async |
類別 | public class AggregatingToken |
繼承 | AggregatingToken Object |
實作 | IToken |
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
執行階段版本: | AIR 1.1, Flash Player 9 |
The parameters passed to the success handler are the combination of all the parameters for the success handlers of the aggregated tokens, in the order in which the tokens were added.
方法 | 定義自 | ||
---|---|---|---|
Constructor. | AggregatingToken | ||
Add a handler to be called if the operation fails. | AggregatingToken | ||
Add a handler to be called if the operation succeeds. | AggregatingToken | ||
Add a token to be aggregated. | AggregatingToken | ||
Indicates that all IToken objects to be aggregated have been added. | AggregatingToken | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
Remove a fault handler. | AggregatingToken | ||
Remove a success handler. | AggregatingToken | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
AggregatingToken | () | 建構函式 |
public function AggregatingToken()
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
執行階段版本: | AIR 1.1, Flash Player 9 |
Constructor.
addFaultHandler | () | 方法 |
public function addFaultHandler(handler:Function, weakReference:Boolean = false):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
執行階段版本: | AIR 1.1, Flash Player 9 |
Add a handler to be called if the operation fails.
參數
handler:Function — A function to be called if the operation fails.
| |
weakReference:Boolean (default = false ) — Use a weak reference to hold onto the handler.
|
addSuccessHandler | () | 方法 |
public function addSuccessHandler(handler:Function, weakReference:Boolean = false):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
執行階段版本: | AIR 1.1, Flash Player 9 |
Add a handler to be called if the operation succeeds.
參數
handler:Function — A function to be called if the operation succeeds.
| |
weakReference:Boolean (default = false ) — Use a weak reference to hold onto the handler.
|
addToken | () | 方法 |
public function addToken(token:com.adobe.gravity.utility.async:IToken):void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
執行階段版本: | AIR 1.1, Flash Player 9 |
Add a token to be aggregated.
NOTE: You must call doneAddingTokens() when you are done adding tokens, otherwise your success or fault handlers will never be called.
參數
token:com.adobe.gravity.utility.async:IToken — The token to be aggregated.
|
doneAddingTokens | () | 方法 |
public function doneAddingTokens():void
語言版本: | ActionScript 3.0 |
產品版本: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
執行階段版本: | AIR 1.1, Flash Player 9 |
Indicates that all IToken objects to be aggregated have been added.
Only after doneAddingTokens is called will success or fault handlers be invoked. Note that this is true even if all tokens have already indicated completion before doneAddingTokens is called (in which case the call to doneAddingTokens itself will trigger invocation of the success or fault handlers).
NOTE: doneAddingTokens can only be called once. Additional calls to doneAddingTokens will have no effect.
removeFaultHandler | () | 方法 |
removeSuccessHandler | () | 方法 |
Tue Jun 12 2018, 03:47 PM Z