Class Required

  • All Implemented Interfaces:
    TagBase, AudioAttributable, InputAttributable, java.io.Serializable, 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.
    Since:
    1.0.0
    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)
      • getValue

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

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