Class Form

    • Constructor Detail

      • Form

        public Form()
    • Method Detail

      • getAcceptcharset

        public java.lang.String getAcceptcharset()
        Returns the accept-charset of this form tag.
        Since:
        8.0.3
      • setAcceptcharset

        public void setAcceptcharset​(java.lang.String acceptcharset)
                              throws WrongValueException
        Sets the accept-charset of this form tag.
        Throws:
        WrongValueException
        Since:
        8.0.3
      • getAction

        public java.lang.String getAction()
        Returns the action of this form tag.
        Since:
        8.0.3
      • isAutocomplete

        public boolean isAutocomplete()
        Returns the autocomplete of this form tag.

        Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

        Since:
        8.0.3
      • setAutocomplete

        public void setAutocomplete​(boolean autocomplete)
                             throws WrongValueException
        Sets the autocomplete of this form tag.

        Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

        Throws:
        WrongValueException
        Since:
        8.0.3
      • getEnctype

        public java.lang.String getEnctype()
        Returns the enctype of this form tag.
        Since:
        8.0.3
      • getMethod

        public java.lang.String getMethod()
        Returns the method of this form tag.
        Since:
        8.0.3
      • getName

        public java.lang.String getName()
        Returns the name of this form tag.
        Since:
        8.0.3
      • isNovalidate

        public boolean isNovalidate()
        Returns the novalidate of this form tag.

        Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

        Since:
        8.0.3
      • setNovalidate

        public void setNovalidate​(boolean novalidate)
                           throws WrongValueException
        Sets the novalidate of this form tag.

        Notice that this attribute refers to the corresponding attribute of the HTML5 specification. Hence, it would still be rendered to client-side as a DOM attribute even if the browser doesn’t support it.

        Throws:
        WrongValueException
        Since:
        8.0.3
      • getTarget

        public java.lang.String getTarget()
        Returns the target of this form tag.
        Since:
        8.0.3
      • getRel

        public java.lang.String getRel()
        Returns the rel of this tag.
        Since:
        10.0.0
      • setRel

        public void setRel​(java.lang.String rel)
                    throws WrongValueException
        Sets the rel of this tag.

        Controls the annotations and what kinds of links the form creates.

        Annotations include external, nofollow, opener, noopener, and noreferrer

        Throws:
        WrongValueException
        Since:
        10.0.0