public enum HTMLComponent extends Enum<HTMLComponent>
Enum Constant and Description |
---|
CHECKBOX_COMPONENT |
DATETIME_COMPONENT |
DROPDOWNBOX_COMPONENT |
NUMERIC_TEXTBOX_COMPONENT |
RADIOBOX_COMPONENT |
TEXTBOX_COMPONENT |
Modifier and Type | Method and Description |
---|---|
boolean |
isCheckbox()
Returns
true if this component is CHECKBOX_COMPONENT . |
boolean |
isDateTime()
Returns
true if this component is DATETIME_COMPONENT . |
boolean |
isDropDownBox()
Returns
true if this component is DROPDOWNBOX_COMPONENT . |
boolean |
isHTMLComponentForEnumeration()
Returns
true if it is a radio box or check box or drop-down box component. |
boolean |
isNumericTextBox()
Returns
true if this component is NUMERIC_TEXTBOX_COMPONENT . |
boolean |
isRadioBox()
Returns
true if this component is RADIOBOX_COMPONENT . |
boolean |
isTextBox()
Returns
true if this component is TEXTBOX_COMPONENT . |
static HTMLComponent |
valueOf(String name)
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.
|
public static final HTMLComponent DROPDOWNBOX_COMPONENT
public static final HTMLComponent CHECKBOX_COMPONENT
public static final HTMLComponent RADIOBOX_COMPONENT
public static final HTMLComponent TEXTBOX_COMPONENT
public static final HTMLComponent NUMERIC_TEXTBOX_COMPONENT
public static final HTMLComponent DATETIME_COMPONENT
public static HTMLComponent[] values()
for (HTMLComponent c : HTMLComponent.values()) System.out.println(c);
public static HTMLComponent valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isDropDownBox()
true
if this component is DROPDOWNBOX_COMPONENT
.public boolean isCheckbox()
true
if this component is CHECKBOX_COMPONENT
.public boolean isRadioBox()
true
if this component is RADIOBOX_COMPONENT
.public boolean isTextBox()
true
if this component is TEXTBOX_COMPONENT
.public boolean isNumericTextBox()
true
if this component is NUMERIC_TEXTBOX_COMPONENT
.public boolean isDateTime()
true
if this component is DATETIME_COMPONENT
.public boolean isHTMLComponentForEnumeration()
true
if it is a radio box or check box or drop-down box component.