| Pakiet | com.adobe.livecycle.rca.token |
| Klasa | public class RCAToken |
| Dziedziczenie | RCAToken AsyncToken EventDispatcher Object |
| Implementuje | IAsyncToken |
Przestarzałe od Review, Commenting, and Approval 10New Review, Commenting, and Approval APIs use mx.rpc.AsyncToken
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Review, Commenting, and Approval Building Block 9.5 |
| Wersje środowiska wykonawczego: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Właściwości publiczne
| Właściwość | Zdefiniowane przez | ||
|---|---|---|---|
![]() | constructor : Object
Odwołanie do obiektu klasy lub funkcji konstruktora, dotyczące danej instancji obiektu. | Object | |
![]() | message : IMessage [tylko do odczytu]
Provides access to the associated message. | AsyncToken | |
| operationName : String [tylko do odczytu]
Specifies the operation name. | RCAToken | ||
![]() | responders : Array [tylko do odczytu]
An array of IResponder handlers that will be called when
the asynchronous request completes. | AsyncToken | |
![]() | result : Object [tylko do odczytu]
The result that was returned by the associated RPC call. | AsyncToken | |
Metody publiczne
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
Constructs a RCAToken. | RCAToken | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Rejestruje obiekt detektora zdarzeń w obiekcie EventDispatcher, dzięki czemu detektor będzie otrzymywał powiadomienia o zdarzeniu. | EventDispatcher | |
Adds a fault handler to this token. | RCAToken | ||
Adds success and fault handlers to this token. | RCAToken | ||
[przesłanianie]
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 | ||
![]() |
Wywołuje zdarzenie, tj. kieruje je do przepływu zdarzeń. | EventDispatcher | |
![]() |
Sprawdza, czy obiekt EventDispatcher zawiera jakiekolwiek detektory zarejestrowane dla konkretnego typu zdarzeń. | EventDispatcher | |
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Determines if this token has at least one mx.rpc.IResponder registered. | AsyncToken | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Usuwa detektor z obiektu EventDispatcher. | EventDispatcher | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | Object | |
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
![]() |
Sprawdza, czy detektor zdarzeń określonego typu jest zarejestrowany w tym obiekcie EventDispatcher lub jego elementach macierzystych. | EventDispatcher | |
Zdarzenia
Szczegół właściwości
operationName | właściwość |
operationName:String [tylko do odczytu] | Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Review, Commenting, and Approval Building Block 9.5 |
| Wersje środowiska wykonawczego: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Specifies the operation name.
Implementacja
public function get operationName():StringKonstruktor Szczegół
RCAToken | () | Konstruktor |
public function RCAToken(operationName:String = "", message:IMessage = null)| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Review, Commenting, and Approval Building Block 9.5 |
| Wersje środowiska wykonawczego: | 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.
|
Szczegół metody
addFaultHandler | () | metoda |
public function addFaultHandler(fault:Function):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Review, Commenting, and Approval Building Block 9.5 |
| Wersje środowiska wykonawczego: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Adds a fault handler to this token.
Parametry
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 | () | metoda |
public function addHandlers(success:Function, fault:Function):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Review, Commenting, and Approval Building Block 9.5 |
| Wersje środowiska wykonawczego: | 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){});
Parametry
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 | () | metoda |
override public function addResponder(responder:IResponder):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Review, Commenting, and Approval Building Block 9.5 |
| Wersje środowiska wykonawczego: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Adds a responder to this token.
Parametry
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 | () | metoda |
public function addSuccessHandler(success:Function):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Review, Commenting, and Approval Building Block 9.5 |
| Wersje środowiska wykonawczego: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Adds a success handler to this token.
Parametry
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 | () | metoda |
public function callFaultHandlers(fault:Object):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Review, Commenting, and Approval Building Block 9.5 |
| Wersje środowiska wykonawczego: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Calls all fault handlers that are associated with this token.
Parametry
fault:Object — The fault to pass to each fault handler invocation.
|
callSuccessHandlers | () | metoda |
public function callSuccessHandlers(data:Object):void| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Review, Commenting, and Approval Building Block 9.5 |
| Wersje środowiska wykonawczego: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Calls all success handlers that are associated with this token.
Parametry
data:Object — The data to pass to each success handler invocation.
|
Tue Jun 12 2018, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne