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.ui;
15:
16: import org.itsnat.comp.ItsNatTextField;
17:
18: /**
19: * Is the base interface of a text field component User Interface.
20: *
21: * <p>Current implementation of this interface only applies to <input type="text">
22: * based components. The text is saved in the <code>value</code> attribute/property.</p>
23: *
24: * @author Jose Maria Arranz Santamaria
25: * @see ItsNatTextField#getItsNatTextFieldUI()
26: */
27: public interface ItsNatTextFieldUI extends ItsNatTextComponentUI {
28: /**
29: * Returns the associated component object.
30: *
31: * @return the component object.
32: */
33: public ItsNatTextField getItsNatTextField();
34:
35: /**
36: * Returns the max number of visible columns of the field.
37: *
38: * @return the max number of visible columns.
39: * @see #setColumns(int)
40: */
41: public int getColumns();
42:
43: /**
44: * Sets the max number of visible columns of the field.
45: *
46: * @param cols the max number of visible columns.
47: * @see #getColumns()
48: */
49: public void setColumns(int cols);
50: }
|