Class HtmlHiddenInput

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

public class HtmlHiddenInput extends HtmlInput
Wrapper for the HTML element "input" of type "hidden".
See Also:
  • Method Details

    • setValue

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

      protected void valueAttributeChanged(String attributeValue, boolean isValueDirty)
      Overrides:
      valueAttributeChanged in class HtmlInput
    • 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.
      Parameters:
      defaultChecked - the default checked state to use when this element gets reset, if applicable
      See Also:
    • mayBeDisplayed

      public boolean mayBeDisplayed()
      Returns true if nodes of this type can ever be displayed, false otherwise. Examples of nodes that can never be displayed are <head>, <meta>, <script>, etc.
      Overrides:
      mayBeDisplayed in class DomNode
      Returns:
      true if nodes of this type can ever be displayed, false otherwise
      See Also:
    • isRequiredSupported

      protected boolean isRequiredSupported()
      Returns whether this element supports the required constraint.
      Overrides:
      isRequiredSupported in class HtmlInput
      Returns:
      whether this element supports the required constraint
    • willValidate

      public boolean willValidate()
      Specified by:
      willValidate in interface ValidatableElement
      Overrides:
      willValidate in class HtmlInput
      Returns:
      whether the element is a candidate for constraint validation