Enum HTMLComponent
- java.lang.Object
-
- java.lang.Enum<HTMLComponent>
-
- com.orchestranetworks.addon.dqid.common.HTMLComponent
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HTMLComponent>
public enum HTMLComponent extends java.lang.Enum<HTMLComponent>
An enumeration class for UI component types such as dropdown box, check box, radio button, text box and date-picker.- Since:
- 1.4.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHECKBOX_COMPONENT
DATETIME_COMPONENT
DROPDOWNBOX_COMPONENT
NUMERIC_TEXTBOX_COMPONENT
RADIOBOX_COMPONENT
TEXTBOX_COMPONENT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isCheckbox()
Returnstrue
if this component isCHECKBOX_COMPONENT
.boolean
isDateTime()
Returnstrue
if this component isDATETIME_COMPONENT
.boolean
isDropDownBox()
Returnstrue
if this component isDROPDOWNBOX_COMPONENT
.boolean
isHTMLComponentForEnumeration()
Returnstrue
if it is a radio box or check box or drop-down box component.boolean
isNumericTextBox()
Returnstrue
if this component isNUMERIC_TEXTBOX_COMPONENT
.boolean
isRadioBox()
Returnstrue
if this component isRADIOBOX_COMPONENT
.boolean
isTextBox()
Returnstrue
if this component isTEXTBOX_COMPONENT
.static HTMLComponent
valueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
DROPDOWNBOX_COMPONENT
public static final HTMLComponent DROPDOWNBOX_COMPONENT
-
CHECKBOX_COMPONENT
public static final HTMLComponent CHECKBOX_COMPONENT
-
RADIOBOX_COMPONENT
public static final HTMLComponent RADIOBOX_COMPONENT
-
TEXTBOX_COMPONENT
public static final HTMLComponent TEXTBOX_COMPONENT
-
NUMERIC_TEXTBOX_COMPONENT
public static final HTMLComponent NUMERIC_TEXTBOX_COMPONENT
-
DATETIME_COMPONENT
public static final HTMLComponent DATETIME_COMPONENT
-
-
Method Detail
-
values
public static HTMLComponent[] 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 (HTMLComponent c : HTMLComponent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HTMLComponent 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
-
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.
-
-