Enum 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 ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if this component isCHECKBOX_COMPONENT
.boolean
Returnstrue
if this component isDATETIME_COMPONENT
.boolean
Returnstrue
if this component isDROPDOWNBOX_COMPONENT
.boolean
Returnstrue
if it is a radio box or check box or drop-down box component.boolean
Returnstrue
if this component isNUMERIC_TEXTBOX_COMPONENT
.boolean
Returnstrue
if this component isRADIOBOX_COMPONENT
.boolean
Returnstrue
if this component isTEXTBOX_COMPONENT
.static HTMLComponent
Returns the enum constant of this type with the specified name.static HTMLComponent[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isDropDownBox
public boolean isDropDownBox()Returnstrue
if this component isDROPDOWNBOX_COMPONENT
. -
isCheckbox
public boolean isCheckbox()Returnstrue
if this component isCHECKBOX_COMPONENT
. -
isRadioBox
public boolean isRadioBox()Returnstrue
if this component isRADIOBOX_COMPONENT
. -
isTextBox
public boolean isTextBox()Returnstrue
if this component isTEXTBOX_COMPONENT
. -
isNumericTextBox
public boolean isNumericTextBox()Returnstrue
if this component isNUMERIC_TEXTBOX_COMPONENT
. -
isDateTime
public boolean isDateTime()Returnstrue
if this component isDATETIME_COMPONENT
. -
isHTMLComponentForEnumeration
public boolean isHTMLComponentForEnumeration()Returnstrue
if it is a radio box or check box or drop-down box component.
-