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
    • Constructor Detail

      • HtmlOptionGroup

        HtmlOptionGroup​(java.lang.String qualifiedName,
                        SgmlPage page,
                        java.util.Map<java.lang.String,​DomAttr> attributes)
        Creates an instance of HtmlOptionGroup
        Parameters:
        qualifiedName - the qualified name of the element type to instantiate
        page - the HtmlPage that contains this element
        attributes - the initial attributes
    • Method Detail

      • isDisabled

        public final boolean isDisabled()
        Description copied from interface: DisabledElement
        Returns true if the disabled attribute is set for this element.
        Specified by:
        isDisabled in interface DisabledElement
        Returns:
        true if the disabled attribute is set for this element
      • 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)