Packagelc.core
Classpublic class Token
InheritanceToken Inheritance Object
Subclasses CollectionToken, ObjectToken

The Token class provides a mechanism to specify handlers for asynchronous calls. Usually, result handlers take a single parameter of type WorkspaceEvent (or a subclass) and fault handlers take a single parameter of type WorkspaceFaultEvent (or a subclass).

See also

lc.core.events.WorkspaceEvent
lc.core.events.WorkspaceFaultEvent


Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined By
  
Adds a fault handler for this asynchronous invocation.
Token
  
addHandlers(resultHandler:Function, faultHandler:Function):void
Adds a result and fault handler for this asynchronous invocation.
Token
  
Adds an object that supports the IResponder interface to handle the result or failure for the asynchronous invocation.
Token
  
Adds a result handler for this asynchronous invocation.
Token
  
Calls all the fault handlers.
Token
  
Calls all the result handlers.
Token
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Method Detail
addFaultHandler()method
public function addFaultHandler(handler:Function):void

Adds a fault handler for this asynchronous invocation.

Parameters

handler:Function — Specifies a function that will be called when the asynchronous call fails.

addHandlers()method 
public function addHandlers(resultHandler:Function, faultHandler:Function):void

Adds a result and fault handler for this asynchronous invocation.

Parameters

resultHandler:Function — Specifies a function that will be called when the asynchronous call successfully completes.
 
faultHandler:Function — Specifies a function that will be called when the asynchronous call fails.

addResponder()method 
public function addResponder(responder:IResponder):void

Adds an object that supports the IResponder interface to handle the result or failure for the asynchronous invocation.

Parameters

responder:IResponder — Specifies the IResponder interface implementation that will be called to handle the asynchronous result or failure.

addResultHandler()method 
public function addResultHandler(handler:Function):void

Adds a result handler for this asynchronous invocation.

Parameters

handler:Function — Specifies a function that will be called when the asynchronous call successfully completes.

callFaultHandlers()method 
public function callFaultHandlers(info:Object):void

Calls all the fault handlers.

Parameters

info:Object — Specifies an object to be passed to all the fault handlers.

callResultHandlers()method 
public function callResultHandlers(data:Object):void

Calls all the result handlers.

Parameters

data:Object — Specifies an object to be passed to all the result handlers.





 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/common/langref/lc/core/Token.html