包 | 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, 11:04 AM Z