Package com.smartgwt.client.ai
Class BuildAIFieldRequestRequest
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.util.AsyncOperationParams
com.smartgwt.client.ai.BuildViaAIRequest
com.smartgwt.client.ai.BuildAIFieldRequestRequest
- All Implemented Interfaces:
HasHandlers
Builds an
AIFieldRequest
from a UserAIRequest
containing a
natural language description of the per-record values to generate for a new AI-generated field.-
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
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionIf specified, theDataBoundComponent
that will display the AI-generated field.TheDataSource
that the AI-generated field will be considered to augment.static BuildAIFieldRequestRequest
getOrCreateRef
(JavaScriptObject jsObj) Whether to show a progress dialog to inform the user about the processing of the build-request.setComponent
(DataBoundComponent component) If specified, theDataBoundComponent
that will display the AI-generated field.setDataSource
(DataSource dataSource) TheDataSource
that the AI-generated field will be considered to augment.setShowProgressDialog
(Boolean showProgressDialog) Whether to show a progress dialog to inform the user about the processing of the build-request.Methods inherited from class com.smartgwt.client.ai.BuildViaAIRequest
getMaxRetries, getProgressDialogProperties, getUserAIRequest, getUserCanCancel, setMaxRetries, setProgressDialogProperties, setUserAIRequest, setUserCanCancel
Methods inherited from class com.smartgwt.client.util.AsyncOperationParams
getCancellationController, setCancellationController
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
-
BuildAIFieldRequestRequest
public BuildAIFieldRequestRequest() -
BuildAIFieldRequestRequest
-
-
Method Details
-
getOrCreateRef
-
setComponent
If specified, theDataBoundComponent
that will display the AI-generated field.The component should be bound to the same
dataSource
of the request or aDataSource
inheriting from it.- Parameters:
component
- New component value. Default value is null- Returns:
BuildAIFieldRequestRequest
instance, for chaining setter calls
-
getComponent
If specified, theDataBoundComponent
that will display the AI-generated field.The component should be bound to the same
dataSource
of the request or aDataSource
inheriting from it.- Returns:
- Current component value. Default value is null
-
setDataSource
TheDataSource
that the AI-generated field will be considered to augment.If
component
is also specified, then the component should be bound to the sameDataSource
or aDataSource
inheriting from it.- Parameters:
dataSource
- New dataSource value. Default value is null- Returns:
BuildAIFieldRequestRequest
instance, for chaining setter calls
-
getDataSource
TheDataSource
that the AI-generated field will be considered to augment.If
component
is also specified, then the component should be bound to the sameDataSource
or aDataSource
inheriting from it.- Returns:
- Current dataSource value. Default value is null
-
setShowProgressDialog
Whether to show a progress dialog to inform the user about the processing of the build-request.The default value is
false
.- Overrides:
setShowProgressDialog
in classBuildViaAIRequest
- Parameters:
showProgressDialog
- New showProgressDialog value. Default value is false- Returns:
BuildAIFieldRequestRequest
instance, for chaining setter calls
-
getShowProgressDialog
Whether to show a progress dialog to inform the user about the processing of the build-request.The default value is
false
.- Overrides:
getShowProgressDialog
in classBuildViaAIRequest
- Returns:
- Current showProgressDialog value. Default value is false
-