Module org.htmlunit

Class HTMLFieldSetElement

java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<org.htmlunit.corejs.javascript.Scriptable>
All Implemented Interfaces:
Serializable, Cloneable, org.htmlunit.corejs.javascript.ConstProperties<org.htmlunit.corejs.javascript.Scriptable>, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.PropHolder<org.htmlunit.corejs.javascript.Scriptable>, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

public class HTMLFieldSetElement extends HTMLElement
The JavaScript object HTMLFieldSetElement.
Author:
Ahmed Ashour, Ronald Brill
See Also:
  • Constructor Details

    • HTMLFieldSetElement

      public HTMLFieldSetElement()
  • Method Details

    • jsConstructor

      public void jsConstructor()
      JavaScript constructor.
      Overrides:
      jsConstructor in class HTMLElement
    • getName

      public String getName()
      Returns the name attribute.
      Overrides:
      getName in class HTMLElement
      Returns:
      the name attribute
    • setName

      public void setName(String name)
      Sets the name attribute.
      Overrides:
      setName in class HTMLElement
      Parameters:
      name - the name attribute value
    • getForm

      public HTMLFormElement getForm()
      Returns the value of the JavaScript form attribute.
      Overrides:
      getForm in class HTMLElement
      Returns:
      the value of the JavaScript form attribute
    • getType

      public String getType()
      Returns the type property; always "fieldset".
      Returns:
      the type property
    • getDomNodeOrDie

      public HtmlFieldSet getDomNodeOrDie()
      Returns the DOM node that corresponds to this JavaScript object or throw an exception if one cannot be found.
      Overrides:
      getDomNodeOrDie in class HTMLElement
      Returns:
      the DOM node
    • checkValidity

      public boolean checkValidity()
      Checks whether the element has any constraints and whether it satisfies them.
      Returns:
      true if the element is valid
    • reportValidity

      public boolean reportValidity()
      Performs the same validity checking steps as the checkValidity() method.
      Returns:
      true if the element is valid
    • getValidationMessage

      public String getValidationMessage()
      Returns the message describing why the element's value fails constraint validation, or "" if it's valid or barred from validation.
      Returns:
      the validation message
    • isDisabled

      public boolean isDisabled()
      Returns true if this element is disabled. Overridden to modify browser configurations.
      Overrides:
      isDisabled in class HTMLElement
      Returns:
      true if this element is disabled
    • setDisabled

      public void setDisabled(boolean disabled)
      Sets whether or not to disable this element. Overridden to modify browser configurations.
      Overrides:
      setDisabled in class HTMLElement
      Parameters:
      disabled - True if this is to be disabled
    • getValidity

      public ValidityState getValidity()
      Returns a ValidityState object representing the validity states of this element.
      Returns:
      a ValidityState object representing the validity states of this element
    • isWillValidate

      public boolean isWillValidate()
      Returns whether the element is a candidate for constraint validation.
      Returns:
      whether the element is a candidate for constraint validation
    • setCustomValidity

      public void setCustomValidity(String message)
      Sets the custom validity message for the element to the specified message.
      Parameters:
      message - the new message
    • getElements

      public HTMLCollection getElements()
      Returns the fieldset's associated form controls -- listed elements whose closest fieldset element ancestor is this fieldset.

      Per spec, this is purely a tree-position question: it does not consult the 'form' attribute or form ownership at all (a control physically inside this fieldset is included even if 'form' points elsewhere), and a nested inner <fieldset>'s own descendants are excluded here even though they're still tree-descendants of this fieldset -- only the inner fieldset ELEMENT itself counts, since it is the listed element whose closest fieldset ancestor is this one.

      Returns:
      the fieldset's associated form controls
      See Also: