Enum InputElement.InputElementType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<InputElement.InputElementType>
    Enclosing class:
    InputElement

    public static enum InputElement.InputElementType
    extends java.lang.Enum<InputElement.InputElementType>
    Enumerates the different types of InputElement that are available.

    The type of an InputElement is determined by the "type" attribute of the HTML tag, e.g. <input type="text" name="firstname">. The type determines the appearance and behaviour of the InputElement when the HTML is viewed in a browser.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      button
      Represents a clickable button.
      checkbox
      Represents a box that can be either checked or unchecked.
      file
      Represents a file selector, usually displayed as a Choose File button which opens a standard file dialog when clicked.
      hidden
      Represents an InputElement which has a value, but doesn't appear on the page.
      image
      Represents a submit button but displayed as a specified image instead of the standard button graphic.
      other
      Represents an input type not described by the other values.
      password
      Represents a text box in which typed characters are masked with dots.
      radio
      Represents one of a collection of radio buttons, only one of which can be selected at once
      reset
      Represents a button which resets all form values to their defaults when clicked.
      submit
      Represents a button which performs the form's action (usually submitting the form data as a GET or POST request) when clicked.
      text
      Represents a text box.
    • Method Detail

      • values

        public static InputElement.InputElementType[] 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 (InputElement.InputElementType c : InputElement.InputElementType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static InputElement.InputElementType 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
      • swigValue

        public final int swigValue()
        For internal use only.
        Returns:
        internal use only
      • swigToEnum

        public static InputElement.InputElementType swigToEnum​(int swigValue)
        For internal use only.
        Parameters:
        swigValue - internal use only
        Returns:
        internal use only