Paket | com.adobe.livecycle.rca.token |
Klass | public class RCAToken |
Arv | RCAToken AsyncToken EventDispatcher Object |
Implementerar | IAsyncToken |
Borttagen sedan Review, Commenting, and Approval 10New Review, Commenting, and Approval APIs use mx.rpc.AsyncToken
Språkversion: | ActionScript 3.0 |
Produktversion: | Review, Commenting, and Approval Building Block 9.5 |
Körningsmiljöversioner: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Publika egenskaper
Egenskap | Definieras med | ||
---|---|---|---|
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
message : IMessage [skrivskyddad]
Provides access to the associated message. | AsyncToken | ||
operationName : String [skrivskyddad]
Specifies the operation name. | RCAToken | ||
responders : Array [skrivskyddad]
An array of IResponder handlers that will be called when
the asynchronous request completes. | AsyncToken | ||
result : Object [skrivskyddad]
The result that was returned by the associated RPC call. | AsyncToken |
Publika metoder
Metod | Definieras med | ||
---|---|---|---|
Constructs a RCAToken. | RCAToken | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | EventDispatcher | ||
Adds a fault handler to this token. | RCAToken | ||
Adds success and fault handlers to this token. | RCAToken | ||
[åsidosätt]
Adds a responder to this token. | RCAToken | ||
Adds a success handler to this token. | RCAToken | ||
Calls all fault handlers that are associated with this token. | RCAToken | ||
Calls all success handlers that are associated with this token. | RCAToken | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | EventDispatcher | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Determines if this token has at least one mx.rpc.IResponder registered. | AsyncToken | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | EventDispatcher |
Egenskapsdetaljer
operationName | egenskap |
Konstruktordetaljer
RCAToken | () | Konstruktor |
public function RCAToken(operationName:String = "", message:IMessage = null)
Språkversion: | ActionScript 3.0 |
Produktversion: | Review, Commenting, and Approval Building Block 9.5 |
Körningsmiljöversioner: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Constructs a RCAToken
.
operationName:String (default = " ") — Name of the operation associated with the token. Used for debugging.
| |
message:IMessage (default = null ) — The message that the token is associated with.
|
Metoddetaljer
addFaultHandler | () | metod |
public function addFaultHandler(fault:Function):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Review, Commenting, and Approval Building Block 9.5 |
Körningsmiljöversioner: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Adds a fault handler to this token.
Parametrar
fault:Function — The function to call on fault. Can be null, but ignoring a possible fault is not recommended unless
you are certain the call cannot fail. The expected function signature is function(fault:Object) .
|
addHandlers | () | metod |
public function addHandlers(success:Function, fault:Function):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Review, Commenting, and Approval Building Block 9.5 |
Körningsmiljöversioner: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Adds success and fault handlers to this token. Adding handlers is more convenient than explicitly calling addSuccessHandler()
and addFaultHandler() after receiving an IToken. Instead, you can use
asyncMethod().addHandlers(function(event:ResultEvent){}, function(event:FaultEvent){});
Parametrar
success:Function — The function to call on success. Can be null, but in most cases, you want to call a function on success.
The expected function signature is function(data:Object) .
| |
fault:Function — The function to call on fault. Can be null, but ignoring a fault is not recommended unless
you are certain that the call cannot fail. The expected function signature is function(fault:Object) .
|
addResponder | () | metod |
override public function addResponder(responder:IResponder):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Review, Commenting, and Approval Building Block 9.5 |
Körningsmiljöversioner: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Adds a responder to this token.
Parametrar
responder:IResponder — The responder to add. This responder defines a result or success handler to call on success, and a fault handler to call on fault.
|
addSuccessHandler | () | metod |
public function addSuccessHandler(success:Function):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Review, Commenting, and Approval Building Block 9.5 |
Körningsmiljöversioner: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Adds a success handler to this token.
Parametrar
success:Function — The function to call on success. Can be null, but in most cases, you want to call a function on success.
The expected function signature is function(data:Object) .
|
callFaultHandlers | () | metod |
public function callFaultHandlers(fault:Object):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Review, Commenting, and Approval Building Block 9.5 |
Körningsmiljöversioner: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Calls all fault handlers that are associated with this token.
Parametrar
fault:Object — The fault to pass to each fault handler invocation.
|
callSuccessHandlers | () | metod |
public function callSuccessHandlers(data:Object):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Review, Commenting, and Approval Building Block 9.5 |
Körningsmiljöversioner: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Calls all success handlers that are associated with this token.
Parametrar
data:Object — The data to pass to each success handler invocation.
|
Tue Jun 12 2018, 01:40 PM Z