Class HtmlWeekInput

All Implemented Interfaces:
Serializable, Cloneable, DisabledElement, FormFieldWithNameHistory, LabelableElement, SubmittableElement, ValidatableElement, Element, Node

public class HtmlWeekInput extends HtmlInput implements LabelableElement
Wrapper for the HTML element "input" where type is "week".
See Also:
  • Field Details

  • Constructor Details

    • HtmlWeekInput

      HtmlWeekInput(String qualifiedName, SgmlPage page, Map<String,DomAttr> attributes)
      Creates an instance.
      Parameters:
      qualifiedName - the qualified name of the element type to instantiate
      page - the page that contains this element
      attributes - the initial attributes
  • 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:
    • setValue

      public void setValue(String newValue)
      Sets the value.
      Overrides:
      setValue in class HtmlInput
      Parameters:
      newValue - the new value
    • 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
    • isMinValid

      private boolean isMinValid()
      Returns if the input element has a valid min value. Refer to the HTML 5 documentation for details.
      Returns:
      if the input element has a valid min value
    • isMaxValid

      private boolean isMaxValid()
      Returns if the input element has a valid max value. Refer to the HTML 5 documentation for details.
      Returns:
      if the input element has a valid max value
    • adjustValueAfterTypeChange

      protected void adjustValueAfterTypeChange(HtmlInput oldInput, BrowserVersion browserVersion)
      Overrides:
      adjustValueAfterTypeChange in class HtmlInput