Revision 492 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.swing/org.gvsig.tools.swing.api/src/main/java/org/gvsig/tools/swing/api/usability/UsabilitySwingManager.java
UsabilitySwingManager.java | ||
---|---|---|
29 | 29 |
import javax.swing.Action; |
30 | 30 |
import javax.swing.Icon; |
31 | 31 |
import javax.swing.JButton; |
32 |
import javax.swing.JSpinner; |
|
33 |
import javax.swing.JTextArea; |
|
32 | 34 |
|
33 | 35 |
/** |
34 | 36 |
* Creates common Swing components which take into account usability guides |
... | ... | |
96 | 98 |
* @return a tool button. |
97 | 99 |
*/ |
98 | 100 |
JButton createJToolButton(String text); |
101 |
|
|
102 |
/** |
|
103 |
* Creates a text area. |
|
104 |
* |
|
105 |
* @param text |
|
106 |
* the text component |
|
107 |
* |
|
108 |
* @return a tool button. |
|
109 |
*/ |
|
110 |
JTextArea createJTextArea(String text); |
|
111 |
|
|
112 |
/** |
|
113 |
* Creates a text area with a default maximum width. |
|
114 |
* |
|
115 |
* @param text |
|
116 |
* the text component |
|
117 |
* @param text |
|
118 |
* the text component |
|
119 |
* |
|
120 |
* @return a tool button. |
|
121 |
*/ |
|
122 |
JTextArea createJTextArea(String text, int filledMaximumWidth); |
|
123 |
|
|
124 |
/** |
|
125 |
* Creates a spinner component that allows null values. It distinguishes between |
|
126 |
* number, date and floating point models based on their dataType. |
|
127 |
* |
|
128 |
* @param text |
|
129 |
* the text component |
|
130 |
* @param value |
|
131 |
* the initial value |
|
132 |
* |
|
133 |
* @param value |
|
134 |
* the maximum filling size |
|
135 |
* |
|
136 |
* @return a spinner GUI component. |
|
137 |
*/ |
|
138 |
JSpinner createJNullSpinner(int dataType, Object value, int filledMaximumWidth); |
|
139 |
|
|
140 |
/** |
|
141 |
* Creates a spinner component that allows null values. It distinguishes between |
|
142 |
* number, date and floating point models based on their dataType. |
|
143 |
* |
|
144 |
* @param int |
|
145 |
* the data type of dynobjectmanager. |
|
146 |
* @param value |
|
147 |
* the initial value |
|
148 |
* @return a spinner GUI component. |
|
149 |
*/ |
|
150 |
JSpinner createJNullSpinner(int dataType, Object value); |
|
99 | 151 |
} |
Also available in: Unified diff