Package com.smartgwt.client.util
Class AsyncOperationResult
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.util.AsyncOperationResult
- All Implemented Interfaces:
HasHandlers
- Direct Known Subclasses:
AIResponse
,AsyncMultipleValuesGenerationResult
,AsyncSingleValueGenerationResult
,BuildViaAIResponse
,SuggestRecordSummaryTitleResult
,SummarizeRecordsPartialResult
,SummarizeRecordsResult
,SummarizeValueResult
An object containing information about the result of an asynchronous operation.
-
Field Summary
Fields inherited from class com.smartgwt.client.core.RefDataClass
id
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIf this is a CANCELED-type
result, an optional statement to be displayed to the user of the reason for cancellation.If this is a DISABLED-type
result, an optional statement to be displayed to the user that the operation was disabled.If this is an ERROR-type
result, an optional statement to be displayed to the user of the error that occurred.static AsyncOperationResult
getOrCreateRef
(JavaScriptObject jsObj) getType()
The result type.setCancellationReason
(String cancellationReason) If this is a CANCELED-type
result, an optional statement to be displayed to the user of the reason for cancellation.setDisabledMessage
(String disabledMessage) If this is a DISABLED-type
result, an optional statement to be displayed to the user that the operation was disabled.setErrorMessage
(String errorMessage) If this is an ERROR-type
result, an optional statement to be displayed to the user of the error that occurred.The result type.Methods inherited from class com.smartgwt.client.core.RefDataClass
getRef, getRef, internalSetID
Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, 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, setFactoryCreated
-
Constructor Details
-
AsyncOperationResult
public AsyncOperationResult() -
AsyncOperationResult
-
-
Method Details
-
getOrCreateRef
-
setCancellationReason
If this is a CANCELED-type
result, an optional statement to be displayed to the user of the reason for cancellation.- Parameters:
cancellationReason
- New cancellationReason value. Default value is null- Returns:
AsyncOperationResult
instance, for chaining setter calls- See Also:
-
getCancellationReason
If this is a CANCELED-type
result, an optional statement to be displayed to the user of the reason for cancellation.- Returns:
- Current cancellationReason value. Default value is null
- See Also:
-
setDisabledMessage
If this is a DISABLED-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.
- Parameters:
disabledMessage
- New disabledMessage value. Default value is null- Returns:
AsyncOperationResult
instance, for chaining setter calls- See Also:
-
getDisabledMessage
If this is a DISABLED-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.
- Returns:
- Current disabledMessage value. Default value is null
- See Also:
-
setErrorMessage
If this is an ERROR-type
result, an optional statement to be displayed to the user of the error that occurred.- Parameters:
errorMessage
- New errorMessage value. Default value is null- Returns:
AsyncOperationResult
instance, for chaining setter calls- See Also:
-
getErrorMessage
If this is an ERROR-type
result, an optional statement to be displayed to the user of the error that occurred.- Returns:
- Current errorMessage value. Default value is null
- See Also:
-
setType
The result type.null
is interpreted as a non-successful result type.- Parameters:
type
- New type value. Default value is *initialized by the implementation*- Returns:
AsyncOperationResult
instance, for chaining setter calls
-
getType
The result type.null
is interpreted as a non-successful result type.- Returns:
- Current type value. Default value is *initialized by the implementation*
-