Class BuildUIViaAIResponse

All Implemented Interfaces:
HasHandlers

public class BuildUIViaAIResponse extends BuildViaAIResponse
Represents a response from AI to a user's request to build UI element(s).
  • Constructor Details

    • BuildUIViaAIResponse

      public BuildUIViaAIResponse()
    • BuildUIViaAIResponse

      public BuildUIViaAIResponse(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static BuildUIViaAIResponse getOrCreateRef(JavaScriptObject jsObj)
    • setJSCode

      public BuildUIViaAIResponse setJSCode(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 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