Enum Class FormControlType

All Implemented Interfaces:
Serializable, Comparable<FormControlType>, Constable

public enum FormControlType extends Enum<FormControlType>
Represents the control type of a FormControl.

Use the FormControl.getFormControlType() method to determine the type of a form control.

The following table shows the relationship between the HTML 4.01 specification control type descriptions, their associated Element names and attributes, and the FormControlType constants defined in this class:

Description Element Name Distinguishing Attribute FormControlType
buttons - submit button BUTTON type="submit" BUTTON
INPUT type="submit" SUBMIT
type="image" IMAGE
buttons - reset button BUTTON, INPUT type="reset" -
buttons - push button BUTTON, INPUT type="button" -
checkboxes INPUT type="checkbox" CHECKBOX
radio buttons INPUT type="radio" RADIO
menus SELECT multiple SELECT_MULTIPLE
absence of multiple SELECT_SINGLE
text input INPUT type="text" TEXT
type="password" PASSWORD
TEXTAREA - TEXTAREA
file select INPUT type="file" FILE
hidden controls INPUT type="hidden" HIDDEN
object controls OBJECT - -
Reset buttons and push buttons have no associated FormControlType because they do not contribute to the form data set of a submitted form, and so have no relevance to the methods provided in the FormControl and associated classes. If required they can be found and manipulated as normal elements.

Object controls have no associated FormControlType because any data they might contribute to the form data set is entirely dependent on the class of object, the interpretation of which is is beyond the scope of this library.

This library does not consider the OPTION elements found within SELECT elements to be controls themselves, despite them being referred to as such in some parts of the HTML 4.01 specification. Hence the absence of an OPTION control type.

See Also: