Enum Class InputType

java.lang.Object
java.lang.Enum<InputType>
io.micronaut.views.fields.InputType
All Implemented Interfaces:
Serializable, Comparable<InputType>, Constable

public enum InputType extends Enum<InputType>
Constants for the value of the type attribute in an HTML input tag.
Since:
4.1.0
Author:
Sergio del Amo
  • Enum Constant Details

    • RADIO

      public static final InputType RADIO
      HTML Input type radio.
    • SUBMIT

      public static final InputType SUBMIT
      HTML Input type submit.
    • HIDDEN

      public static final InputType HIDDEN
      HTML Input type hidden.
    • NUMBER

      public static final InputType NUMBER
      HTML Input type number.
    • DATE

      public static final InputType DATE
      HTML Input type date.
    • TIME

      public static final InputType TIME
      HTML Input type time.
    • DATE_TIME_LOCAL

      public static final InputType DATE_TIME_LOCAL
      HTML Input type datetime-local.
    • CHECKBOX

      public static final InputType CHECKBOX
      HTML Input type checkbox.
    • EMAIL

      public static final InputType EMAIL
      HTML Input type email.
    • FILE

      public static final InputType FILE
      HTML Input type file.
    • PASSWORD

      public static final InputType PASSWORD
      HTML Input type password.
    • URL

      public static final InputType URL
      HTML Input type url.
    • TEXT

      public static final InputType TEXT
      HTML Input type text.
    • TEL

      public static final InputType TEL
      HTML Input type tel.
  • 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<InputType>