Package su.onno.ui

Enum Class InputType

All Implemented Interfaces:
Serializable, Comparable<InputType>, Constable

public enum InputType extends Enum<InputType>
The kind of toolbar input field rendered alongside the custom action buttons. Picks the widget the client shows; the value always reaches a handler as a string (see ActionContext).
  • Enum Constant Details

    • TEXT

      public static final InputType TEXT
      A free-text field.
    • TEXTAREA

      public static final InputType TEXTAREA
      A multi-line free-text field (action-form dialogs; a toolbar renders it as a single-line field).
    • DATE

      public static final InputType DATE
      A date picker (value is an ISO yyyy-MM-dd string).
    • NUMBER

      public static final InputType NUMBER
      A numeric field (value is the number as a string).
    • SELECT

      public static final InputType SELECT
      A dropdown of author-supplied options.
    • REFERENCE

      public static final InputType REFERENCE
      A searchable picker of another catalog/document's records — the same ref widget an entity form uses. The value is the picked record's id (a UUID string); the target entity is declared with InputSpec.InputBuilder.reference(Class). Action forms only.
  • Method Details

    • values

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

      public static InputType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null