Enum EntryFieldType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<EntryFieldType>

    public enum EntryFieldType
    extends java.lang.Enum<EntryFieldType>
    Enum used for entry field types.
    Author:
    Christopher Mindus
    • Enum Constant Summary

      Enum Constants 
      Enum ConstantDescription
      EMAIL
      Email field type is used for input fields that should contain an e-mail address (see soft keyboards and HTML5 specification).
      NORMAL
      Default normal type with no special processing.
      NUMBER
      Number field type is used for input fields that should contain a numeric value (see soft keyboards and HTML5 specification).
      PASSWORD
      Password field type is used when entries should not be displayed.
      PHONE
      Phone number field type for input fields that should contain a telephone number (see soft keyboards and HTML5 specification).
      URL
      URL field type (see soft keyboards and HTML5 specification).
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static EntryFieldTypevalueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static EntryFieldType[]values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • NORMAL

        public static final EntryFieldType NORMAL
        Default normal type with no special processing.
      • PASSWORD

        public static final EntryFieldType PASSWORD
        Password field type is used when entries should not be displayed.
      • NUMBER

        public static final EntryFieldType NUMBER
        Number field type is used for input fields that should contain a numeric value (see soft keyboards and HTML5 specification).
      • PHONE

        public static final EntryFieldType PHONE
        Phone number field type for input fields that should contain a telephone number (see soft keyboards and HTML5 specification).
      • EMAIL

        public static final EntryFieldType EMAIL
        Email field type is used for input fields that should contain an e-mail address (see soft keyboards and HTML5 specification). Depending on browser support, the e-mail address can be automatically validated when submitted.
      • URL

        public static final EntryFieldType URL
        URL field type (see soft keyboards and HTML5 specification). Depending on browser support, the URL can be automatically validated when submitted.
    • Method Detail

      • values

        public static EntryFieldType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EntryFieldType c : EntryFieldType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

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