com.smartgwt.client.ai

## Class BuildUIViaAIResponse

- java.lang.Object
- - com.smartgwt.client.core.JsObject
  - - com.smartgwt.client.core.DataClass
    - - com.smartgwt.client.core.RefDataClass
      - - com.smartgwt.client.util.AsyncOperationResult
        - - com.smartgwt.client.ai.BuildViaAIResponse
          - - com.smartgwt.client.ai.BuildUIViaAIResponse

- All Implemented Interfaces:
    com.google.gwt.event.shared.HasHandlers

      public class BuildUIViaAIResponse
      extends BuildViaAIResponse

  Represents a response from AI to a user's request to build UI element(s).

- - ### Field Summary

    - ### Fields inherited from class com.smartgwt.client.core.RefDataClass

      `id`

    - ### Fields inherited from class com.smartgwt.client.core.DataClass

      `factoryCreated, factoryProperties`

    - ### Fields inherited from class com.smartgwt.client.core.JsObject

      `jsObj`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `BuildUIViaAIResponse()`
    `BuildUIViaAIResponse(com.google.gwt.core.client.JavaScriptObject jsObj)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getJSCode()` After a successful request to build UI via AI, the JavaScript code that was generated.
    `PaletteNode[]` | `getNodes()` After a successful request to build UI via AI, the palette nodes that were generated.
    `static BuildUIViaAIResponse` | `getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)`
    `BuildUIViaAIResponse` | `setJSCode(java.lang.String jsCode)` After a successful request to build UI via AI, the JavaScript code that was generated.
    `BuildUIViaAIResponse` | `setNodes(PaletteNode... nodes)` After a successful request to build UI via AI, the palette nodes that were generated.

    - ### Methods inherited from class com.smartgwt.client.util.AsyncOperationResult

      `getCancellationReason, getDisabledMessage, getErrorMessage, getType, setCancellationReason, setDisabledMessage, setErrorMessage, setType`

    - ### 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`

    - ### Methods inherited from class com.smartgwt.client.core.JsObject

      `equals, getJsObj, hashCode, isCreated, setJavaScriptObject, setJsObj`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BuildUIViaAIResponse

          public BuildUIViaAIResponse()

    - #### BuildUIViaAIResponse

          public BuildUIViaAIResponse(com.google.gwt.core.client.JavaScriptObject jsObj)

  - ### Method Detail

    - #### getOrCreateRef

          public static BuildUIViaAIResponse getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)

    - #### setJSCode

          public BuildUIViaAIResponse setJSCode(java.lang.String jsCode)

      After a successful request to build UI via AI, the JavaScript code that was generated.
      Parameters:
        `jsCode` - New jsCode value. Default value is null
      Returns:
        `BuildUIViaAIResponse` instance, for chaining setter calls

    - #### getJSCode

          public java.lang.String getJSCode()

      After a successful request to build UI via AI, the JavaScript code that was generated.
      Returns:
        Current jsCode value. Default value is null

    - #### setNodes

          public BuildUIViaAIResponse setNodes(PaletteNode... nodes)

      After a successful request to build UI via AI, the palette nodes that were generated.
      Parameters:
        `nodes` - New nodes value. Default value is null
      Returns:
        `BuildUIViaAIResponse` instance, for chaining setter calls

    - #### getNodes

          public PaletteNode[] getNodes()

      After a successful request to build UI via AI, the palette nodes that were generated.
      Returns:
        Current nodes value. Default value is null