Enum Class InputMode

java.lang.Object
java.lang.Enum<InputMode>
eu.webtoolkit.jwt.InputMode
All Implemented Interfaces:
Serializable, Comparable<InputMode>, Constable

public enum InputMode extends Enum<InputMode>
Enumeration that describes different input modes.

The input mode tells the browser what layout should be used for a virtual keybord when editing this field. This mainly impacts phone users.

  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Like Numeric + ensure that the virtual keyboard has the decimal separator.
    Ensure that the virtual keyboard has "@".
    No virtual keyboard should be displayed.
    Ensure that the virtual keyboard has the digit from 0 to 9.
    Does not specify any input mode to the browser.
    A virtual keyboard convenient for search.
    A numeric virtual keyboard wich also have "#"" and "*".
    The locale-specific standard virtual keyboard.
    Ensure that the virtual keyboard has "/".
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the numerical representation of this enum.
    static InputMode
    Returns the enum constant of this class with the specified name.
    static InputMode[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • Off

      public static final InputMode Off
      Does not specify any input mode to the browser.
    • None

      public static final InputMode None
      No virtual keyboard should be displayed.
    • Text

      public static final InputMode Text
      The locale-specific standard virtual keyboard.
    • Tel

      public static final InputMode Tel
      A numeric virtual keyboard wich also have "#"" and "*".
    • Url

      public static final InputMode Url
      Ensure that the virtual keyboard has "/".
    • Email

      public static final InputMode Email
      Ensure that the virtual keyboard has "@".
    • Numeric

      public static final InputMode Numeric
      Ensure that the virtual keyboard has the digit from 0 to 9. Does usually show only the numbers with maybe also "-" .
    • Decimal

      public static final InputMode Decimal
      Like Numeric + ensure that the virtual keyboard has the decimal separator.
  • Method Details

    • values

      public static InputMode[] 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 InputMode 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
    • getValue

      public int getValue()
      Returns the numerical representation of this enum.