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.HTMLInputElement;
17:
18: /**
19: * Is the interface of <input> based components.
20: *
21: * @author Jose Maria Arranz Santamaria
22: */
23: public interface ItsNatHTMLInput extends ItsNatHTMLFormComponent {
24: /**
25: * Returns the associated DOM element to this component.
26: *
27: * @return the associated DOM element.
28: */
29: public HTMLInputElement getHTMLInputElement();
30:
31: /**
32: * Removes focus from this element.
33: *
34: * <p>This method is a full replacement of the original
35: * <code>org.w3c.dom.html.HTMLInputElement.blur()</code> method in Xerces
36: * (a dummy method). It sends the appropriated JavaScript to the client to call again
37: * using the symmetric DOM element at the client.</p>
38: */
39: public void blur();
40:
41: /**
42: * Gives focus to this element.
43: *
44: * <p>This method is a full replacement of the original
45: * <code>org.w3c.dom.html.HTMLInputElement.focus()</code> method in Xerces
46: * (a dummy method). It sends the appropriated JavaScript to the client to call again
47: * using the symmetric DOM element at the client.</p>
48: */
49: public void focus();
50:
51: /**
52: * Select the contents of the <textarea>.
53: *
54: * <p>This method is a full replacement of the original
55: * <code>org.w3c.dom.html.HTMLInputElement.select()</code> method in Xerces
56: * (a dummy method). It sends the appropriated JavaScript to the client to call again
57: * using the symmetric DOM element at the client.</p>
58: */
59: public void select();
60:
61: /**
62: * Simulate a mouse-click. For <input> elements whose
63: * <code>type</code> attribute has one of the following values: "button",
64: * "checkbox", "radio", "reset", or "submit".
65: *
66: * <p>This method is a full replacement of the original
67: * <code>org.w3c.dom.html.HTMLInputElement.click()</code> method in Xerces
68: * (a dummy method). It sends the appropriated JavaScript to the client to call again
69: * using the symmetric DOM element at the client.</p>
70: */
71: public void click();
72: }
|