Class HtmlDateInput

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

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

    • isSubmittableByEnter

      protected boolean isSubmittableByEnter()
      Returns true if clicking Enter (ASCII 10, or '\n') should submit the enclosed form (if any). The default implementation returns false.
      Overrides:
      isSubmittableByEnter in class HtmlElement
      Returns:
      true if clicking Enter should submit the enclosed form (if any)
    • 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:
    • reset

      public void reset()
      Returns the value of this element to the default value or checked state (usually what it was at the time the page was loaded, unless it has been modified via JavaScript).
      Specified by:
      reset in interface SubmittableElement
      Overrides:
      reset in class HtmlSelectableTextInput
      See Also:
    • 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
    • isValid

      public boolean isValid()
      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
    • setValue

      public void setValue(String newValue)
      Sets the value.
      Overrides:
      setValue in class HtmlSelectableTextInput
      Parameters:
      newValue - the new value