Enum Class AutoCompleteMode

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

public enum AutoCompleteMode extends Enum<AutoCompleteMode>
Enumeration that describes different autocomplete modes.

The autocomplete mode tells the browser what type of information is required by the field. This helps the browser to complete the field for the user.

  • Enum Constant Details

    • Off

      public static final AutoCompleteMode Off
      Forbid the browser to automatically enter or select values.

      Note: In most modern browsers, this will not stop password manager to do it.

    • On

      public static final AutoCompleteMode On
      The browser will "guess" what type of data is required.
    • NewPassword

      public static final AutoCompleteMode NewPassword
      A new password. This should be used with field for entering a new password or confirming the new password.
    • CurrentPassword

      public static final AutoCompleteMode CurrentPassword
      The current password of the user.
    • Username

      public static final AutoCompleteMode Username
      An accout name or username.
  • Method Details

    • values

      public static AutoCompleteMode[] 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 AutoCompleteMode 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.