Class HTMLFormElementImpl

    • Constructor Detail

      • HTMLFormElementImpl

        public HTMLFormElementImpl​(java.lang.String name)
      • HTMLFormElementImpl

        public HTMLFormElementImpl()
    • Method Detail

      • namedItem

        public java.lang.Object namedItem​(java.lang.String name)
      • item

        public java.lang.Object item​(int index)
      • getAcceptCharset

        public java.lang.String getAcceptCharset()
        Description copied from interface: HTMLFormElement
        List of character sets supported by the server. See the accept-charset attribute definition in HTML 4.01.
        Specified by:
        getAcceptCharset in interface HTMLFormElement
      • setAcceptCharset

        public void setAcceptCharset​(java.lang.String acceptCharset)
        Description copied from interface: HTMLFormElement
        List of character sets supported by the server. See the accept-charset attribute definition in HTML 4.01.
        Specified by:
        setAcceptCharset in interface HTMLFormElement
      • getAction

        public java.lang.String getAction()
        Description copied from interface: HTMLFormElement
        Server-side form handler. See the action attribute definition in HTML 4.01.
        Specified by:
        getAction in interface HTMLFormElement
      • setAction

        public void setAction​(java.lang.String action)
        Description copied from interface: HTMLFormElement
        Server-side form handler. See the action attribute definition in HTML 4.01.
        Specified by:
        setAction in interface HTMLFormElement
      • getEnctype

        public java.lang.String getEnctype()
        Description copied from interface: HTMLFormElement
        The content type of the submitted form, generally "application/x-www-form-urlencoded". See the enctype attribute definition in HTML 4.01. The onsubmit even handler is not guaranteed to be triggered when invoking this method. The behavior is inconsistent for historical reasons and authors should not rely on a particular one.
        Specified by:
        getEnctype in interface HTMLFormElement
      • setEnctype

        public void setEnctype​(java.lang.String enctype)
        Description copied from interface: HTMLFormElement
        The content type of the submitted form, generally "application/x-www-form-urlencoded". See the enctype attribute definition in HTML 4.01. The onsubmit even handler is not guaranteed to be triggered when invoking this method. The behavior is inconsistent for historical reasons and authors should not rely on a particular one.
        Specified by:
        setEnctype in interface HTMLFormElement
      • setMethod

        public void setMethod​(java.lang.String method)
        Description copied from interface: HTMLFormElement
        HTTP method [IETF RFC 2616] used to submit form. See the method attribute definition in HTML 4.01.
        Specified by:
        setMethod in interface HTMLFormElement
      • getTarget

        public java.lang.String getTarget()
        Description copied from interface: HTMLFormElement
        Frame to render the resource in. See the target attribute definition in HTML 4.01.
        Specified by:
        getTarget in interface HTMLFormElement
      • setTarget

        public void setTarget​(java.lang.String target)
        Description copied from interface: HTMLFormElement
        Frame to render the resource in. See the target attribute definition in HTML 4.01.
        Specified by:
        setTarget in interface HTMLFormElement
      • submit

        public void submit()
        Description copied from interface: HTMLFormElement
        Submits the form. It performs the same action as a submit button.
        Specified by:
        submit in interface HTMLFormElement
      • setOnsubmit

        public void setOnsubmit​(org.mozilla.javascript.Function value)
      • getOnsubmit

        public org.mozilla.javascript.Function getOnsubmit()
      • submit

        public final void submit​(FormInput[] extraFormInputs)
        This method should be called when form submission is done by a submit button.
        Parameters:
        extraFormInputs - Any additional form inputs that need to be submitted, e.g. the submit button parameter.
      • reset

        public void reset()
        Description copied from interface: HTMLFormElement
        Restores a form element's default values. It performs the same action as a reset button.
        Specified by:
        reset in interface HTMLFormElement