public class AsyncOperationResult extends RefDataClass
idfactoryCreated, factoryProperties| Constructor and Description |
|---|
AsyncOperationResult() |
AsyncOperationResult(com.google.gwt.core.client.JavaScriptObject jsObj) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCancellationReason()
If this is a CANCELED-
type result, an optional statement
to be displayed to the user of the reason for cancellation. |
java.lang.String |
getDisabledMessage()
If this is a DISABLED-
type result, an optional statement
to be displayed to the user that the operation was disabled. |
java.lang.String |
getErrorMessage()
If this is an ERROR-
type result, an optional statement to
be displayed to the user of the error that occurred. |
static AsyncOperationResult |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
AsyncOperationResultType |
getType()
The result type.
|
AsyncOperationResult |
setCancellationReason(java.lang.String cancellationReason)
If this is a CANCELED-
type result, an optional statement
to be displayed to the user of the reason for cancellation. |
AsyncOperationResult |
setDisabledMessage(java.lang.String disabledMessage)
If this is a DISABLED-
type result, an optional statement
to be displayed to the user that the operation was disabled. |
AsyncOperationResult |
setErrorMessage(java.lang.String errorMessage)
If this is an ERROR-
type result, an optional statement to
be displayed to the user of the error that occurred. |
AsyncOperationResult |
setType(AsyncOperationResultType type)
The result type.
|
getRef, getRef, internalSetIDapplyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreatedpublic AsyncOperationResult()
public AsyncOperationResult(com.google.gwt.core.client.JavaScriptObject jsObj)
public static AsyncOperationResult getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public AsyncOperationResult setCancellationReason(java.lang.String cancellationReason)
type result, an optional statement
to be displayed to the user of the reason for cancellation.cancellationReason - New cancellationReason value. Default value is nullAsyncOperationResult instance, for chaining setter callsCancellationController.cancel(),
HTMLStringpublic java.lang.String getCancellationReason()
type result, an optional statement
to be displayed to the user of the reason for cancellation.CancellationController.cancel(),
HTMLStringpublic AsyncOperationResult setDisabledMessage(java.lang.String disabledMessage)
type result, an optional statement
to be displayed to the user that the operation was disabled. This may include information about the reason why the
operation was disabled. It is recommended to use the past tense, because this message may continue to be displayed to the user when the conditions for the operation being disabled are no longer the case.
disabledMessage - New disabledMessage value. Default value is nullAsyncOperationResult instance, for chaining setter callsHTMLStringpublic java.lang.String getDisabledMessage()
type result, an optional statement
to be displayed to the user that the operation was disabled. This may include information about the reason why the
operation was disabled. It is recommended to use the past tense, because this message may continue to be displayed to the user when the conditions for the operation being disabled are no longer the case.
HTMLStringpublic AsyncOperationResult setErrorMessage(java.lang.String errorMessage)
type result, an optional statement to
be displayed to the user of the error that occurred.errorMessage - New errorMessage value. Default value is nullAsyncOperationResult instance, for chaining setter callsHTMLStringpublic java.lang.String getErrorMessage()
type result, an optional statement to
be displayed to the user of the error that occurred.HTMLStringpublic AsyncOperationResult setType(AsyncOperationResultType type)
null is interpreted as a non-successful result type.
type - New type value. Default value is *initialized by the implementation*AsyncOperationResult instance, for chaining setter callspublic AsyncOperationResultType getType()
null is interpreted as a non-successful result type.