Enum Class HTMLComponent
- All Implemented Interfaces:
Serializable,Comparable<HTMLComponent>,Constable
An enumeration class for UI component types such as dropdown box, check box, radio button, text box and date-picker.
- Since:
- 1.4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif this component isCHECKBOX_COMPONENT.booleanReturnstrueif this component isDATETIME_COMPONENT.booleanReturnstrueif this component isDROPDOWNBOX_COMPONENT.booleanReturnstrueif it is a radio box or check box or drop-down box component.booleanReturnstrueif this component isNUMERIC_TEXTBOX_COMPONENT.booleanReturnstrueif this component isRADIOBOX_COMPONENT.booleanReturnstrueif this component isTEXTBOX_COMPONENT.static HTMLComponentReturns the enum constant of this class with the specified name.static HTMLComponent[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
DROPDOWNBOX_COMPONENT
-
CHECKBOX_COMPONENT
-
RADIOBOX_COMPONENT
-
TEXTBOX_COMPONENT
-
NUMERIC_TEXTBOX_COMPONENT
-
DATETIME_COMPONENT
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
isDropDownBox
public boolean isDropDownBox()Returnstrueif this component isDROPDOWNBOX_COMPONENT. -
isCheckbox
public boolean isCheckbox()Returnstrueif this component isCHECKBOX_COMPONENT. -
isRadioBox
public boolean isRadioBox()Returnstrueif this component isRADIOBOX_COMPONENT. -
isTextBox
public boolean isTextBox()Returnstrueif this component isTEXTBOX_COMPONENT. -
isNumericTextBox
public boolean isNumericTextBox()Returnstrueif this component isNUMERIC_TEXTBOX_COMPONENT. -
isDateTime
public boolean isDateTime()Returnstrueif this component isDATETIME_COMPONENT. -
isHTMLComponentForEnumeration
public boolean isHTMLComponentForEnumeration()Returnstrueif it is a radio box or check box or drop-down box component.
-