All Implemented Interfaces:
TagBase, AudioAttributable, InputAttributable, Serializable, Cloneable

public class Required extends AbstractAttribute implements AudioAttributable, InputAttributable
required attribute for the element.
required attribute for input element :-
This attribute specifies that the user must fill in a value before submitting a form. It cannot be used when the type attribute is hidden, image, or a button type (submit, reset, or button). The :optional and :required CSS pseudo-classes will be applied to the field as appropriate.
Since:
1.0.0
See Also:
  • Constructor Details

    • Required

      public Required()
    • Required

      public Required(String value)
  • Method Details

    • setValue

      public void setValue(String value)
    • setValue

      public void setValue(boolean updateClient, String value)
      sets the value for this attribute
      Parameters:
      updateClient - true to update client browser page if it is available. The default value is true but it will be ignored if there is no client browser page.
      value - the value for the attribute.
      Since:
      2.1.15
    • getValue

      public String getValue()
    • init

      protected void init()
      invokes only once per object
      Since:
      1.0.0