Package com.smartgwt.client.ai
Class BuildUIViaAIRequest
- All Implemented Interfaces:
HasHandlers
- Direct Known Subclasses:
BuildDataBoundUIViaAIRequest
Represents a request to AI for UI elements.
-
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 TypeMethodDescriptionString[]
The list of allowed UI types.The maximum numnber of re-attempts to have the AI fix a validation error.static BuildUIViaAIRequest
getOrCreateRef
(JavaScriptObject jsObj) The request from the user describing what UI they would like the AI to build.The types of validation to use on AI-generated JS code, in the order in which they should be applied.setAllowedUITypes
(String... allowedUITypes) The list of allowed UI types.setCustomValidator
(BuildUIViaAICustomValidator customValidator) The custom validation routine to use.setMaxValidationRetries
(Integer maxValidationRetries) The maximum numnber of re-attempts to have the AI fix a validation error.setUserAIRequest
(UserAIRequest userAIRequest) The request from the user describing what UI they would like the AI to build.setValidationTypes
(BuildUIViaAIValidationType... validationTypes) The types of validation to use on AI-generated JS code, in the order in which they should be applied.Methods inherited from class com.smartgwt.client.ai.BuildViaAIRequest
getMaxRetries, getProgressDialogProperties, getShowProgressDialog, getUserCanCancel, setMaxRetries, setProgressDialogProperties, setShowProgressDialog, 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
-
BuildUIViaAIRequest
public BuildUIViaAIRequest() -
BuildUIViaAIRequest
-
-
Method Details
-
getOrCreateRef
-
setAllowedUITypes
The list of allowed UI types.A "UI type" string is usually not the same as the corresponding Smart GWT component type name.
- Parameters:
allowedUITypes
- New allowedUITypes value. Default value is null- Returns:
BuildUIViaAIRequest
instance, for chaining setter calls
-
getAllowedUITypes
The list of allowed UI types.A "UI type" string is usually not the same as the corresponding Smart GWT component type name.
- Returns:
- Current allowedUITypes value. Default value is null
-
setCustomValidator
The custom validation routine to use. If this validator is supplied, but"custom"
is not included among thevalidationTypes
, then it is implicitly assumed that custom validation will be performed last.- Parameters:
customValidator
- New customValidator value. Default value is null- Returns:
BuildUIViaAIRequest
instance, for chaining setter calls
-
setMaxValidationRetries
The maximum numnber of re-attempts to have the AI fix a validation error.- Parameters:
maxValidationRetries
- New maxValidationRetries value. Default value is 1- Returns:
BuildUIViaAIRequest
instance, for chaining setter calls
-
getMaxValidationRetries
The maximum numnber of re-attempts to have the AI fix a validation error.- Returns:
- Current maxValidationRetries value. Default value is 1
-
setUserAIRequest
The request from the user describing what UI they would like the AI to build.- Overrides:
setUserAIRequest
in classBuildViaAIRequest
- Parameters:
userAIRequest
- New userAIRequest value. Default value is null- Returns:
BuildUIViaAIRequest
instance, for chaining setter calls
-
getUserAIRequest
The request from the user describing what UI they would like the AI to build.- Overrides:
getUserAIRequest
in classBuildViaAIRequest
- Returns:
- Current userAIRequest value. Default value is null
-
setValidationTypes
The types of validation to use on AI-generated JS code, in the order in which they should be applied.- Parameters:
validationTypes
- New validationTypes value. Default value is ["default"]- Returns:
BuildUIViaAIRequest
instance, for chaining setter calls
-
getValidationTypes
The types of validation to use on AI-generated JS code, in the order in which they should be applied.- Returns:
- Current validationTypes value. Default value is ["default"]
-