Class Required

  • All Implemented Interfaces:
    TagBase, AudioAttributable, InputAttributable,, java.lang.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.
    See Also:
    Serialized Form
    • Constructor Detail

      • Required

        public Required​()
      • Required

        public Required​(java.lang.String value)
    • Method Detail

      • setValue

        public void setValue​(java.lang.String value)
      • setValue

        public void setValue​(boolean updateClient,
                             java.lang.String value)
        sets the value for this attribute
        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.
      • getValue

        public java.lang.String getValue​()
      • init

        protected void init​()
        invokes only once per object