Interface OptionElement

All Superinterfaces:
DomQueryable, Element, EventTarget, Node

public interface OptionElement extends Element
The option element which specifies an option inside a document's header element.
  • Method Details

    • canHaveChildren

      boolean canHaveChildren()
      Option elements cannot have children
      Specified by:
      canHaveChildren in interface Element
      Returns:
      false
    • getName

      String getName()
      Get the option name.

      Shortcut for accessing the Attributes.NAME attribute.

      Returns:
      Option name
    • setName

      void setName(@Nullable @Nullable String key)
      Set the option name.

      Shortcut for setting the Attributes.NAME attribute.

      Parameters:
      key - New option name
    • getValue

      String getValue()
      Get the value of the option.

      Shortcut for accessing the Attributes.VALUE attribute.

      Returns:
      Option value
    • setValue

      void setValue(String value)
      Set the value of the option.

      Shortcut for setting the Attributes.VALUE attribute.

      Parameters:
      value - New option value