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_COMPONENTDATETIME_COMPONENTDROPDOWNBOX_COMPONENTNUMERIC_TEXTBOX_COMPONENTRADIOBOX_COMPONENTTEXTBOX_COMPONENT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCheckbox()Returnstrueif this component isCHECKBOX_COMPONENT.booleanisDateTime()Returnstrueif this component isDATETIME_COMPONENT.booleanisDropDownBox()Returnstrueif this component isDROPDOWNBOX_COMPONENT.booleanisHTMLComponentForEnumeration()Returnstrueif it is a radio box or check box or drop-down box component.booleanisNumericTextBox()Returnstrueif this component isNUMERIC_TEXTBOX_COMPONENT.booleanisRadioBox()Returnstrueif this component isRADIOBOX_COMPONENT.booleanisTextBox()Returnstrueif this component isTEXTBOX_COMPONENT.static HTMLComponentvalueOf(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()
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.
-
-