Interface FormControlElement

All Superinterfaces:
Element, EventTarget, Node, SearchContext
All Known Subinterfaces:
InputElement, SelectElement, TextAreaElement

public interface FormControlElement extends Element
An HTML DOM form control element such as input, select, textarea, etc. Provides access to the attributes of the form control element.
  • Method Details

    • isEnabled

      boolean isEnabled()
      Returns true if the current form control is enabled.
      Throws:
      ObjectClosedException - when this instance is closed
    • value

      String value()
      Returns a string that represents the value associated with the form control.
      Throws:
      ObjectClosedException - when this instance is closed
    • value

      void value(String value)
      Associates the given value with the control.
      Parameters:
      value - the value to set
      Throws:
      ObjectClosedException - when this instance is closed
    • form

      Returns an Optional that contains the HTML element for the form that contains this element, otherwise an empty Optional.
      Throws:
      ObjectClosedException - when this instance is closed