01: /*
02: * Copyright (c) 2000 World Wide Web Consortium,
03: * (Massachusetts Institute of Technology, Institut National de
04: * Recherche en Informatique et en Automatique, Keio University). All
05: * Rights Reserved. This program is distributed under the W3C's Software
06: * Intellectual Property License. This program is distributed in the
07: * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
08: * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
09: * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10: * details.
11: */
12:
13: package org.w3c.dom.html;
14:
15: /**
16: * The <code>FORM</code> element encompasses behavior similar to a collection
17: * and an element. It provides direct access to the contained input elements
18: * as well as the attributes of the form element. See the FORM element
19: * definition in HTML 4.0.
20: * <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
21: */
22: public interface HTMLFormElement extends HTMLElement {
23: /**
24: * Returns a collection of all control elements in the form.
25: */
26: public HTMLCollection getElements();
27:
28: /**
29: * The number of form controls in the form.
30: */
31: public int getLength();
32:
33: /**
34: * Names the form.
35: */
36: public String getName();
37:
38: public void setName(String name);
39:
40: /**
41: * List of character sets supported by the server. See the
42: * accept-charset attribute definition in HTML 4.0.
43: */
44: public String getAcceptCharset();
45:
46: public void setAcceptCharset(String acceptCharset);
47:
48: /**
49: * Server-side form handler. See the action attribute definition in HTML
50: * 4.0.
51: */
52: public String getAction();
53:
54: public void setAction(String action);
55:
56: /**
57: * The content type of the submitted form, generally
58: * "application/x-www-form-urlencoded". See the enctype attribute
59: * definition in HTML 4.0.
60: */
61: public String getEnctype();
62:
63: public void setEnctype(String enctype);
64:
65: /**
66: * HTTP method used to submit form. See the method attribute definition
67: * in HTML 4.0.
68: */
69: public String getMethod();
70:
71: public void setMethod(String method);
72:
73: /**
74: * Frame to render the resource in. See the target attribute definition
75: * in HTML 4.0.
76: */
77: public String getTarget();
78:
79: public void setTarget(String target);
80:
81: /**
82: * Submits the form. It performs the same action as a submit button.
83: */
84: public void submit();
85:
86: /**
87: * Restores a form element's default values. It performs the same action
88: * as a reset button.
89: */
90: public void reset();
91:
92: }
|