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: /**
17: * Is the interface of text based components which text is rendered/edited
18: * as a single line using an HTML input element with type "file".
19: *
20: * <p>ItsNat provides a default implementation of this interface.</p>
21: *
22: * <p>This component is "passive", do not try to set a file path explicitly
23: * calling {@link #setText(String)} or using the data model because for security reasons browsers reject or ignore
24: * a initial value of an <input> file element or any attempt to set this value
25: * using JavaScript (to avoid an unadvertised file upload), only the user
26: * can set a file path. Anyway the file path introduced by the user is automatically
27: * sent to the server and ready to read calling {@link #getText()} or reading the
28: * data model.</p>
29: *
30: * @author Jose Maria Arranz Santamaria
31: * @see ItsNatHTMLComponentManager#createItsNatHTMLInputFile(org.w3c.dom.html.HTMLInputElement,org.itsnat.core.NameValue[])
32: */
33: public interface ItsNatHTMLInputFile extends ItsNatHTMLInputTextBased {
34: }
|