Class HtmlOptionGroup

    • Field Detail

      • TAG_NAME

        public static final java.lang.String TAG_NAME
        The HTML tag represented by this element.
        See Also:
        Constant Field Values
    • Method Detail

      • isDisabled

        public final boolean isDisabled()
        Returns true if the disabled attribute is set for this element. Note that this method always returns false when emulating IE, because IE does not allow individual option groups to be disabled.
        Specified by:
        isDisabled in interface DisabledElement
        Returns:
        true if the disabled attribute is set for this element (always false when emulating IE)
      • getDisabledAttribute

        public final java.lang.String getDisabledAttribute()
        Returns the value of the attribute disabled. Refer to the HTML 4.01 documentation for details on the use of this attribute.
        Specified by:
        getDisabledAttribute in interface DisabledElement
        Returns:
        the value of the attribute disabled or an empty string if that attribute isn't defined
      • getLabelAttribute

        public final java.lang.String getLabelAttribute()
        Returns the value of the attribute label. Refer to the HTML 4.01 documentation for details on the use of this attribute.
        Returns:
        the value of the attribute label or an empty string if that attribute isn't defined
      • setLabelAttribute

        public final void setLabelAttribute​(java.lang.String newLabel)
        Sets the value of the attribute label. Refer to the HTML 4.01 documentation for details on the use of this attribute.
        Parameters:
        newLabel - the value of the attribute label
      • getEnclosingSelect

        public HtmlSelect getEnclosingSelect()
        Gets the enclosing select of this HtmlOptionGroup.
        Returns:
        null if no select is found (for instance malformed html)