Enum 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 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 name
        java.lang.NullPointerException - if the argument is null
      • isDropDownBox

        public boolean isDropDownBox()
        Returns true if this component is DROPDOWNBOX_COMPONENT.
      • isCheckbox

        public boolean isCheckbox()
        Returns true if this component is CHECKBOX_COMPONENT.
      • isRadioBox

        public boolean isRadioBox()
        Returns true if this component is RADIOBOX_COMPONENT.
      • isTextBox

        public boolean isTextBox()
        Returns true if this component is TEXTBOX_COMPONENT.
      • isDateTime

        public boolean isDateTime()
        Returns true if this component is DATETIME_COMPONENT.
      • isHTMLComponentForEnumeration

        public boolean isHTMLComponentForEnumeration()
        Returns true if it is a radio box or check box or drop-down box component.