01: /*
02: ItsNat Java Web Application Framework
03: Copyright (C) 2007 Innowhere Software Services S.L., Spanish Company
04: Author: Jose Maria Arranz Santamaria
05:
06: This program is free software: you can redistribute it and/or modify
07: it under the terms of the GNU Affero General Public License as published by
08: the Free Software Foundation, either version 3 of the License, or
09: (at your option) any later version. See the GNU Affero General Public
10: License for more details. See the copy of the GNU Affero General Public License
11: included in this program. If not, see <http://www.gnu.org/licenses/>.
12: */
13:
14: package org.itsnat.comp.html;
15:
16: import org.w3c.dom.html.HTMLFormElement;
17:
18: /**
19: * Is the interface of HTML <form> components.
20: *
21: * <p>ItsNat provides a default implementation of this interface.</p>
22: *
23: * @author Jose Maria Arranz Santamaria
24: * @see org.itsnat.comp.html.ItsNatHTMLComponentManager#createItsNatHTMLForm(org.w3c.dom.html.HTMLFormElement,org.itsnat.core.NameValue[])
25: */
26: public interface ItsNatHTMLForm extends ItsNatHTMLElementComponent {
27: /**
28: * Returns the associated DOM element to this component.
29: *
30: * @return the associated DOM element.
31: */
32: public HTMLFormElement getHTMLFormElement();
33:
34: /**
35: * Calls the <code>submit()</code> method on the client element.
36: *
37: * <p>This method is a full replacement of the original
38: * <code>org.w3c.dom.html.HTMLFormElement.submit()</code> method in Xerces
39: * (a dummy method). It sends the appropriated JavaScript to the client to call again
40: * using the symmetric DOM element at the client.</p>
41: */
42: public void submit();
43:
44: /**
45: * Calls the <code>reset()</code> method on the client element.
46: *
47: * <p>This method is a full replacement of the original
48: * <code>org.w3c.dom.html.HTMLFormElement.reset()</code> method in Xerces
49: * (a dummy method). It sends the appropriated JavaScript to the client to call again
50: * using the symmetric DOM element at the client.</p>
51: */
52: public void reset();
53: }
|