Class FormMethod

  • All Implemented Interfaces:
    TagBase, InputAttributable, java.io.Serializable, java.lang.Cloneable


    public class FormMethod
    extends AbstractAttribute
    implements InputAttributable
    formmethod attribute for the element.
     If the input element is a submit button or image, this attribute specifies the HTTP method that the browser uses to submit the form.
     Possible values are:
          post: The data from the form is included in the body of the form and is sent to the server.
          get: The data from the form are appended to the form attribute URI, with a '?' as a separator, and the resulting URI is sent to the server. Use this method when the form has no side-effects and contains only ASCII characters.
     If specified, this attribute overrides the method attribute of the element's form owner.
    
    
     
    Since:
    1.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • FormMethod

        public FormMethod​(java.lang.String value)
        Parameters:
        value - the value for the attribute
        Since:
        1.0.0
    • Method Detail

      • setValue

        public void setValue​(java.lang.String value)
        sets the value for this attribute
        Parameters:
        value - the value for the attribute.
        Since:
        1.0.0
      • getValue

        public java.lang.String getValue​()
        gets the value of this attribute
        Returns:
        the value of the attribute
        Since:
        1.0.0
      • init

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