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
idFields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionIf specified, theDataBoundComponentthat will display the AI-generated field.TheDataSourcethat the AI-generated field will be considered to augment.static BuildAIFieldRequestRequestgetOrCreateRef(JavaScriptObject jsObj) Whether to show a progress dialog to inform the user about the processing of the build-request.setComponent(DataBoundComponent component) If specified, theDataBoundComponentthat will display the AI-generated field.setDataSource(DataSource dataSource) TheDataSourcethat 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, setUserCanCancelMethods inherited from class com.smartgwt.client.util.AsyncOperationParams
getCancellationController, setCancellationControllerMethods inherited from class com.smartgwt.client.core.RefDataClass
getRef, getRef, internalSetIDMethods 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, theDataBoundComponentthat will display the AI-generated field.The component should be bound to the same
dataSourceof the request or aDataSourceinheriting from it.- Parameters:
component- New component value. Default value is null- Returns:
BuildAIFieldRequestRequestinstance, for chaining setter calls
-
getComponent
If specified, theDataBoundComponentthat will display the AI-generated field.The component should be bound to the same
dataSourceof the request or aDataSourceinheriting from it.- Returns:
- Current component value. Default value is null
-
setDataSource
TheDataSourcethat the AI-generated field will be considered to augment.If
componentis also specified, then the component should be bound to the sameDataSourceor aDataSourceinheriting from it.- Parameters:
dataSource- New dataSource value. Default value is null- Returns:
BuildAIFieldRequestRequestinstance, for chaining setter calls
-
getDataSource
TheDataSourcethat the AI-generated field will be considered to augment.If
componentis also specified, then the component should be bound to the sameDataSourceor aDataSourceinheriting 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:
setShowProgressDialogin classBuildViaAIRequest- Parameters:
showProgressDialog- New showProgressDialog value. Default value is false- Returns:
BuildAIFieldRequestRequestinstance, 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:
getShowProgressDialogin classBuildViaAIRequest- Returns:
- Current showProgressDialog value. Default value is false
-