Package com.onec.ui

Enum Class InputType

java.lang.Object
java.lang.Enum<InputType>
com.onec.ui.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.
    • 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.
  • 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