Class HtmlOptionGroup

All Implemented Interfaces:
Serializable, Cloneable, DisabledElement, Element, Node

public class HtmlOptionGroup extends HtmlElement implements DisabledElement
Wrapper for the HTML element "optgroup".
See Also:
  • Field Details

  • Method Details

    • 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 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 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(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)
    • getDefaultStyleDisplay

      public HtmlElement.DisplayStyle getDefaultStyleDisplay()
      INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
      Returns the default display style.
      Overrides:
      getDefaultStyleDisplay in class HtmlElement
      Returns:
      the default display style