Class Form

All Implemented Interfaces:
Serializable, Cloneable, Component, DynamicPropertied, RawId, Scope, ComponentCtrl

public class Form extends AbstractTag
The FORM tag.
Author:
tomyeh
See Also:
  • Constructor Details

    • Form

      public Form()
  • Method Details

    • getAcceptcharset

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

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

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

      public void setAction(String action) throws WrongValueException
      Sets the action of this form tag.
      Throws:
      WrongValueException
      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 String getEnctype()
      Returns the enctype of this form tag.
      Since:
      8.0.3
    • setEnctype

      public void setEnctype(String enctype) throws WrongValueException
      Sets the enctype of this form tag.
      Throws:
      WrongValueException
      Since:
      8.0.3
    • getMethod

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

      public void setMethod(String method) throws WrongValueException
      Sets the method of this form tag.
      Throws:
      WrongValueException
      Since:
      8.0.3
    • getName

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

      public void setName(String name) throws WrongValueException
      Sets the name of this form tag.
      Throws:
      WrongValueException
      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 String getTarget()
      Returns the target of this form tag.
      Since:
      8.0.3
    • setTarget

      public void setTarget(String target) throws WrongValueException
      Sets the target of this form tag.
      Throws:
      WrongValueException
      Since:
      8.0.3
    • getRel

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

      public void setRel(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