| 套件 | lc.foundation.util | 
| 類別 | public class Token | 
| 繼承 | Token    Object | 
| 子類別 | CollectionToken, ObjectToken | 
| 語言版本: | ActionScript 3.0 | 
| 產品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 | 
| 執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 | 
Token class provides a mechanism to specify handlers for asynchronous calls.
	 Usually, result handlers take a single parameter of type LiveCycleEvent (or a subclass)
	 and fault handlers take a single parameter of type LiveCycleFaultEvent (or a subclass).
	 
	 For information on using this component to customize Workspace, see Customizing the Adobe Digital Enterprise Platform Document Services - Workspace User Interface .
相關 API 元素
公用方法 
| 方法 | 定義自 | ||
|---|---|---|---|
 
		 Adds a fault handler for this asynchronous invocation.  | Token | ||
 
		 Adds a result and fault handler for this asynchronous invocation.  | Token | ||
		 Adds an object to handle the result or failure for an asynchronous invocation.  | Token | ||
 
		 Adds a result handler for this asynchronous invocation.  | Token | ||
 
		 Calls all the fault handlers.  | Token | ||
		 Calls all the result handlers.  | Token | ||
![]()  | 
	 指出物件是否有已定義的指定屬性。  | Object | |
![]()  | 
	 指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。  | Object | |
![]()  | 
	 指出指定的屬性是否存在,以及是否可列舉。  | Object | |
![]()  | 
     為迴圈作業設定動態屬性的可用性。  | Object | |
![]()  | 
	 傳回代表此物件的字串,根據地區特定慣例進行格式化。  | Object | |
![]()  | 
	 會傳回指定之物件的字串形式。  | Object | |
![]()  | 
	 會傳回指定之物件的基本值。  | Object | |
方法詳細資訊
addFaultHandler | () | 方法 | 
 public function addFaultHandler(handler:Function):void| 語言版本: | ActionScript 3.0 | 
| 產品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 | 
| 執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 | 
Adds a fault handler for this asynchronous invocation.
參數
handler:Function — Specifies a function that is called when the asynchronous call fails.
		 
		  | 
addHandlers | () | 方法 | 
 public function addHandlers(resultHandler:Function, faultHandler:Function):void| 語言版本: | ActionScript 3.0 | 
| 產品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 | 
| 執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 | 
Adds a result and fault handler for this asynchronous invocation.
參數
resultHandler:Function — Specifies the function that is called when the asynchronous call completes.
		  | |
faultHandler:Function — Specifies athefunction that is called when the asynchronous call fails.
		 
		  | 
addResponder | () | 方法 | 
 public function addResponder(responder:IResponder):void| 語言版本: | ActionScript 3.0 | 
| 產品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 | 
| 執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 | 
Adds an object to handle the result or failure for an asynchronous invocation.
參數
responder:IResponder — Specifies the mx.rpc.IResponder interface implementation to handle 
		                  the asynchronous result or failure.
		 
		  | 
addResultHandler | () | 方法 | 
 public function addResultHandler(handler:Function):void| 語言版本: | ActionScript 3.0 | 
| 產品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 | 
| 執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 | 
Adds a result handler for this asynchronous invocation.
參數
handler:Function — Specifies a function that is called when the asynchronous call completes.
		 
		  | 
callFaultHandlers | () | 方法 | 
 public function callFaultHandlers(info:Object):void| 語言版本: | ActionScript 3.0 | 
| 產品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 | 
| 執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 | 
Calls all the fault handlers.
參數
info:Object — Specifies the information passed to all the fault handlers.
		 
		  | 
callResultHandlers | () | 方法 | 
 public function callResultHandlers(data:Object):void| 語言版本: | ActionScript 3.0 | 
| 產品版本: | Adobe Digital Enterprise Platform Document Services - Workspace 9 | 
| 執行階段版本: | AIR (unsupported), Flash Player 9, Flash Player 10 | 
Calls all the result handlers.
參數
data:Object — Specifies the data passed to all the result handlers.
		 
		  | 
Tue Jun 12 2018, 03:47 PM Z
 
 隱藏繼承公用屬性
 顯示繼承公用屬性