Class HtmlEmailInput

All Implemented Interfaces:
Serializable, Cloneable, DisabledElement, FormFieldWithNameHistory, org.htmlunit.html.impl.SelectableTextInput, LabelableElement, SubmittableElement, ValidatableElement, Element, Node

public class HtmlEmailInput extends HtmlSelectableTextInput implements LabelableElement
Wrapper for the HTML element "input" where type is "email".
See Also:
  • Method Details

    • setDefaultChecked

      public void setDefaultChecked(boolean defaultChecked)
      Sets the default checked state to use when this element gets reset, if applicable. The default implementation is empty; only checkboxes and radio buttons really care what the default checked value is.
      Specified by:
      setDefaultChecked in interface SubmittableElement
      Parameters:
      defaultChecked - the default checked state to use when this element gets reset, if applicable
      See Also:
    • getValue

      public String getValue()
      Overrides:
      getValue in class HtmlInput
      Returns:
      the value
    • isValid

      public boolean isValid()
      Description copied from class: HtmlElement
      Returns whether this element satisfies all form validation constraints set.
      Overrides:
      isValid in class HtmlInput
      Returns:
      whether this element satisfies all form validation constraints set
    • isPatternSupported

      protected boolean isPatternSupported()
      Returns if the input element supports pattern validation. Refer to the HTML 5 documentation for details.
      Overrides:
      isPatternSupported in class HtmlInput
      Returns:
      if the input element supports pattern validation
    • isBlankPatternValidated

      protected boolean isBlankPatternValidated()
      Overrides:
      isBlankPatternValidated in class HtmlInput
      Returns:
      if the element executes pattern validation on blank strings
    • isMinMaxLengthSupported

      protected boolean isMinMaxLengthSupported()
      Returns if the input element supports maxlength minlength validation. Refer to the HTML 5 documentation for details.
      Overrides:
      isMinMaxLengthSupported in class HtmlInput
      Returns:
      if the input element supports pattern validation