Class ReaderEventTranslator
java.lang.Object
com.levigo.jadice.web.demo.common.client.events.ReaderEventTranslator
- All Implemented Interfaces:
AsyncCallback<Document>
This class is used to show how messages (related to a document reading event) can be shown to the
user
If you want to deactivate document reading based events, just call t
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionReaderEventTranslator
(AsyncCallback<Document> documentCallback) ReaderEventTranslator
(AsyncCallback<Document> documentCallback, ReaderEventTranslator.Verbosity verbosity) ReaderEventTranslator
(AsyncCallback<Document> documentCallback, ReaderEventTranslator.Verbosity verbosity, PasswordDialog passwordDialog) -
Method Summary
-
Constructor Details
-
ReaderEventTranslator
-
ReaderEventTranslator
public ReaderEventTranslator(AsyncCallback<Document> documentCallback, ReaderEventTranslator.Verbosity verbosity) -
ReaderEventTranslator
public ReaderEventTranslator(AsyncCallback<Document> documentCallback, ReaderEventTranslator.Verbosity verbosity, PasswordDialog passwordDialog)
-
-
Method Details
-
onFailure
Description copied from interface:AsyncCallback
Called when an asynchronous call fails to complete normally.- Specified by:
onFailure
in interfaceAsyncCallback<Document>
- Parameters:
caught
- failure encountered while executing a remote procedure call
-
onSuccess
Description copied from interface:AsyncCallback
Called when an asynchronous call completes successfully.- Specified by:
onSuccess
in interfaceAsyncCallback<Document>
- Parameters:
result
- the return value of the remote produced call
-