Enum AIBuildUIStepType

java.lang.Object
java.lang.Enum<AIBuildUIStepType>
com.smartgwt.client.types.AIBuildUIStepType
All Implemented Interfaces:
ValueEnum, Serializable, Comparable<AIBuildUIStepType>, Constable

public enum AIBuildUIStepType extends Enum<AIBuildUIStepType> implements ValueEnum
  • Enum Constant Details

    • SUMMARIZEAIREQUEST

      public static final AIBuildUIStepType SUMMARIZEAIREQUEST
    • DETERMINEISNEW

      public static final AIBuildUIStepType DETERMINEISNEW
      Asks AI whether the request is for a new UI, or modification of the existing UI. (Note: we also ask AI to generate a title and purpose description.)

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "determineIsNew".

    • DETERMINETITLEANDPURPOSE

      public static final AIBuildUIStepType DETERMINETITLEANDPURPOSE
      Asks AI to generate a short title for the UI and the purpose of the UI. This is only used when AI.buildUI() is called with an empty/blank existing UI, in which case we know isNew:true, but don't have the title or purpose.

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "determineTitleAndPurpose".

    • DETERMINENEXTSTEP

      public static final AIBuildUIStepType DETERMINENEXTSTEP
    • ADDCOMPONENTS

      public static final AIBuildUIStepType ADDCOMPONENTS
      AI describes component(s) to add to the current UI.

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "addComponents".

    • CREATECOMPONENT

      public static final AIBuildUIStepType CREATECOMPONENT
      For each component description from an "addComponents" step, AI is asked to generate a palette node for that particular component according to the AI-generated description.

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "createComponent".

    • VALIDATECOMPONENT

      public static final AIBuildUIStepType VALIDATECOMPONENT
      Validate a UI component against schemas

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "validateComponent".

    • FIXCOMPONENT

      public static final AIBuildUIStepType FIXCOMPONENT
      Asks AI to fix a component, given the list of validation errors

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "fixComponent".

    • CHANGECOMPONENTDEFAULTS

      public static final AIBuildUIStepType CHANGECOMPONENTDEFAULTS
      Changes component defaults

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "changeComponentDefaults".

    • REARRANGECOMPONENTS

      public static final AIBuildUIStepType REARRANGECOMPONENTS
      Rearranges the top-level components

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "rearrangeComponents".

    • DELETECOMPONENTS

      public static final AIBuildUIStepType DELETECOMPONENTS
      Deletes one or more components

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "deleteComponents".

    • VALIDATEUI

      public static final AIBuildUIStepType VALIDATEUI
      Validates a whole UI. This is used when AI makes changes to a part of the UI, to verify that it didn't break anything that references it, such as a Component Action referring to a component that is proposed to be deleted.

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "validateUI".

    • FIXUI

      public static final AIBuildUIStepType FIXUI
      Asks AI to correct the UI, given the list of validation errors.

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "fixUI".

    • DONE

      public static final AIBuildUIStepType DONE
      Signals that AI is finished building UI.

      If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "done".

  • Method Details

    • values

      public static AIBuildUIStepType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AIBuildUIStepType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Specified by:
      getValue in interface ValueEnum