Package com.facilita.fc.web
Enum InputElement.InputElementType
- java.lang.Object
-
- java.lang.Enum<InputElement.InputElementType>
-
- com.facilita.fc.web.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 ofInputElement
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 theInputElement
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 anInputElement
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 oncereset
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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InputElement.InputElementType
swigToEnum(int swigValue)
For internal use only.int
swigValue()
For internal use only.static InputElement.InputElementType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static InputElement.InputElementType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
other
public static final InputElement.InputElementType other
Represents an input type not described by the other values.
-
button
public static final InputElement.InputElementType button
Represents a clickable button.
-
checkbox
public static final InputElement.InputElementType checkbox
Represents a box that can be either checked or unchecked.
-
file
public static final InputElement.InputElementType file
Represents a file selector, usually displayed as a Choose File button which opens a standard file dialog when clicked.
-
hidden
public static final InputElement.InputElementType hidden
Represents anInputElement
which has a value, but doesn't appear on the page.
-
image
public static final InputElement.InputElementType image
Represents a submit button but displayed as a specified image instead of the standard button graphic.
-
password
public static final InputElement.InputElementType password
Represents a text box in which typed characters are masked with dots.
-
radio
public static final InputElement.InputElementType radio
Represents one of a collection of radio buttons, only one of which can be selected at once
-
reset
public static final InputElement.InputElementType reset
Represents a button which resets all form values to their defaults when clicked.
-
submit
public static final InputElement.InputElementType submit
Represents a button which performs the form's action (usually submitting the form data as a GET or POST request) when clicked.
-
text
public static final InputElement.InputElementType 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 namejava.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
-
-