svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.swing / org.gvsig.fmap.dal.swing.impl / src / main / java / org / gvsig / fmap / dal / swing / impl / featuretype / DefaultFeatureAttributePanelView.java @ 45154
History | View | Annotate | Download (32.2 KB)
1 |
package org.gvsig.fmap.dal.swing.impl.featuretype; |
---|---|
2 |
|
3 |
import com.jeta.open.i18n.I18NUtils; |
4 |
import com.jgoodies.forms.layout.CellConstraints; |
5 |
import com.jgoodies.forms.layout.FormLayout; |
6 |
import java.awt.BorderLayout; |
7 |
import java.awt.ComponentOrientation; |
8 |
import java.awt.Container; |
9 |
import java.awt.Dimension; |
10 |
import javax.swing.Box; |
11 |
import javax.swing.ImageIcon; |
12 |
import javax.swing.JButton; |
13 |
import javax.swing.JCheckBox; |
14 |
import javax.swing.JComboBox; |
15 |
import javax.swing.JFrame; |
16 |
import javax.swing.JLabel; |
17 |
import javax.swing.JList; |
18 |
import javax.swing.JPanel; |
19 |
import javax.swing.JScrollPane; |
20 |
import javax.swing.JTabbedPane; |
21 |
import javax.swing.JTable; |
22 |
import javax.swing.JTextArea; |
23 |
import javax.swing.JTextField; |
24 |
import javax.swing.border.EmptyBorder; |
25 |
|
26 |
|
27 |
public class DefaultFeatureAttributePanelView extends JPanel |
28 |
{ |
29 |
JLabel lblFieldName = new JLabel(); |
30 |
JTextField txtFieldName = new JTextField(); |
31 |
JLabel lblFieldType = new JLabel(); |
32 |
JTabbedPane tabAditionalFields = new JTabbedPane(); |
33 |
JLabel lblSize = new JLabel(); |
34 |
JTextField txtSize = new JTextField(); |
35 |
JLabel lblPrecision = new JLabel(); |
36 |
JLabel lblDefaultValue = new JLabel(); |
37 |
JTextField txtPrecision = new JTextField(); |
38 |
JTextField txtDefaultValue = new JTextField(); |
39 |
JLabel lblDataProfile = new JLabel(); |
40 |
JComboBox cboDataProfile = new JComboBox(); |
41 |
JCheckBox chkVirtualField = new JCheckBox(); |
42 |
JLabel lblScale = new JLabel(); |
43 |
JTextField txtScale = new JTextField(); |
44 |
JLabel lblRelationType = new JLabel(); |
45 |
JComboBox cboRelationType = new JComboBox(); |
46 |
JLabel lblDisplaySize = new JLabel(); |
47 |
JTextField txtDisplaySize = new JTextField(); |
48 |
JButton btnVirtualFieldBookmarks = new JButton(); |
49 |
JTextField txtVirtualField = new JTextField(); |
50 |
JButton btnVirtualFieldHistory = new JButton(); |
51 |
JButton btnVirtualField = new JButton(); |
52 |
JLabel lblGeometryType = new JLabel(); |
53 |
JLabel lblGeometrySubtype = new JLabel(); |
54 |
JLabel lblCRS = new JLabel(); |
55 |
JComboBox cboGeometryType = new JComboBox(); |
56 |
JComboBox cboGeometrySubtype = new JComboBox(); |
57 |
JButton btnCRS = new JButton(); |
58 |
JTextField txtCRS = new JTextField(); |
59 |
JLabel lblDateFormat = new JLabel(); |
60 |
JComboBox cboDateFormat = new JComboBox(); |
61 |
JLabel lblInterval = new JLabel(); |
62 |
JLabel lblIntervalStart = new JLabel(); |
63 |
JLabel lblIntervalEnd = new JLabel(); |
64 |
JTextField txtIntervalStart = new JTextField(); |
65 |
JButton btnIntervalStart = new JButton(); |
66 |
JButton btnIntervalEnd = new JButton(); |
67 |
JTextField txtIntervalEnd = new JTextField(); |
68 |
JTable tblTags = new JTable(); |
69 |
JLabel lblTagsName = new JLabel(); |
70 |
JComboBox cboTagsName = new JComboBox(); |
71 |
JLabel lblTagsValue = new JLabel(); |
72 |
JComboBox cboTagsValue = new JComboBox(); |
73 |
JButton btnTagsAdd = new JButton(); |
74 |
JButton btnTagsUpdate = new JButton(); |
75 |
JButton btnTagsRemove = new JButton(); |
76 |
JLabel lbTagsLabelDescription = new JLabel(); |
77 |
JLabel lblTagsDescription = new JLabel(); |
78 |
JCheckBox chkIsForeingKey = new JCheckBox(); |
79 |
JLabel lblForeingKeyTableName = new JLabel(); |
80 |
JLabel lblForeingKeyCodeName = new JLabel(); |
81 |
JLabel lblForeingKeyLabelFormula = new JLabel(); |
82 |
JComboBox cboForeingKeyTableName = new JComboBox(); |
83 |
JComboBox cboForeingKeyCodeName = new JComboBox(); |
84 |
JTextField txtForeingKeyFormula = new JTextField(); |
85 |
JLabel lblIsClosedList = new JLabel(); |
86 |
JCheckBox chkIsClosedList = new JCheckBox(); |
87 |
JButton btnForeingKeyFormula = new JButton(); |
88 |
JButton btnForeingKeyFormulaHistory = new JButton(); |
89 |
JButton btnForeingKeyFormulaBookmarks = new JButton(); |
90 |
JTabbedPane tabLayout = new JTabbedPane(); |
91 |
JLabel lblGroup = new JLabel(); |
92 |
JLabel lblOrder = new JLabel(); |
93 |
JComboBox cboGroup = new JComboBox(); |
94 |
JTextField txtOrder = new JTextField(); |
95 |
JLabel lblHidden = new JLabel(); |
96 |
JCheckBox chkHidden = new JCheckBox(); |
97 |
JLabel lblLabel = new JLabel(); |
98 |
JTextField txtLabel = new JTextField(); |
99 |
JLabel lblDescription = new JLabel(); |
100 |
JTextArea txtDescription = new JTextArea(); |
101 |
JLabel lblAvailableValues = new JLabel(); |
102 |
JList lstAvailableValues = new JList(); |
103 |
JLabel lblAvailableValuesLabel = new JLabel(); |
104 |
JTextField txtAvailableValuesLabel = new JTextField(); |
105 |
JLabel lblAvailableValuesValue = new JLabel(); |
106 |
JTextField txtAvailableValuesValue = new JTextField(); |
107 |
JButton btnAvailableValuesAdd = new JButton(); |
108 |
JButton btnAvailableValuesUpdate = new JButton(); |
109 |
JButton btnAvailableValuesRemove = new JButton(); |
110 |
JButton btnAvailableValuesRemoveAll = new JButton(); |
111 |
JLabel lblIsPrimaryKey = new JLabel(); |
112 |
JCheckBox chkIsPrimaryKey = new JCheckBox(); |
113 |
JLabel lblIsAutomatic = new JLabel(); |
114 |
JCheckBox chkIsAutomatic = new JCheckBox(); |
115 |
JLabel lblAllowNulls = new JLabel(); |
116 |
JCheckBox chkAllowNulls = new JCheckBox(); |
117 |
JComboBox cboFieldType = new JComboBox(); |
118 |
JButton btnFieldType = new JButton(); |
119 |
|
120 |
/**
|
121 |
* Default constructor
|
122 |
*/
|
123 |
public DefaultFeatureAttributePanelView()
|
124 |
{ |
125 |
initializePanel(); |
126 |
} |
127 |
|
128 |
/**
|
129 |
* Adds fill components to empty cells in the first row and first column of the grid.
|
130 |
* This ensures that the grid spacing will be the same as shown in the designer.
|
131 |
* @param cols an array of column indices in the first row where fill components should be added.
|
132 |
* @param rows an array of row indices in the first column where fill components should be added.
|
133 |
*/
|
134 |
void addFillComponents( Container panel, int[] cols, int[] rows ) |
135 |
{ |
136 |
Dimension filler = new Dimension(10,10); |
137 |
|
138 |
boolean filled_cell_11 = false; |
139 |
CellConstraints cc = new CellConstraints();
|
140 |
if ( cols.length > 0 && rows.length > 0 ) |
141 |
{ |
142 |
if ( cols[0] == 1 && rows[0] == 1 ) |
143 |
{ |
144 |
/** add a rigid area */
|
145 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,1) ); |
146 |
filled_cell_11 = true;
|
147 |
} |
148 |
} |
149 |
|
150 |
for( int index = 0; index < cols.length; index++ ) |
151 |
{ |
152 |
if ( cols[index] == 1 && filled_cell_11 ) |
153 |
{ |
154 |
continue;
|
155 |
} |
156 |
panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) ); |
157 |
} |
158 |
|
159 |
for( int index = 0; index < rows.length; index++ ) |
160 |
{ |
161 |
if ( rows[index] == 1 && filled_cell_11 ) |
162 |
{ |
163 |
continue;
|
164 |
} |
165 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) ); |
166 |
} |
167 |
|
168 |
} |
169 |
|
170 |
/**
|
171 |
* Helper method to load an image file from the CLASSPATH
|
172 |
* @param imageName the package and name of the file to load relative to the CLASSPATH
|
173 |
* @return an ImageIcon instance with the specified image file
|
174 |
* @throws IllegalArgumentException if the image resource cannot be loaded.
|
175 |
*/
|
176 |
public ImageIcon loadImage( String imageName ) |
177 |
{ |
178 |
try
|
179 |
{ |
180 |
ClassLoader classloader = getClass().getClassLoader();
|
181 |
java.net.URL url = classloader.getResource( imageName ); |
182 |
if ( url != null ) |
183 |
{ |
184 |
ImageIcon icon = new ImageIcon( url ); |
185 |
return icon;
|
186 |
} |
187 |
} |
188 |
catch( Exception e ) |
189 |
{ |
190 |
e.printStackTrace(); |
191 |
} |
192 |
throw new IllegalArgumentException( "Unable to load image: " + imageName ); |
193 |
} |
194 |
|
195 |
/**
|
196 |
* Method for recalculating the component orientation for
|
197 |
* right-to-left Locales.
|
198 |
* @param orientation the component orientation to be applied
|
199 |
*/
|
200 |
public void applyComponentOrientation( ComponentOrientation orientation ) |
201 |
{ |
202 |
// Not yet implemented...
|
203 |
// I18NUtils.applyComponentOrientation(this, orientation);
|
204 |
super.applyComponentOrientation(orientation);
|
205 |
} |
206 |
|
207 |
public JPanel createPanel() |
208 |
{ |
209 |
JPanel jpanel1 = new JPanel(); |
210 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:NONE,CENTER:2DLU:NONE"); |
211 |
CellConstraints cc = new CellConstraints();
|
212 |
jpanel1.setLayout(formlayout1); |
213 |
|
214 |
lblFieldName.setName("lblFieldName");
|
215 |
lblFieldName.setText("_Field_name");
|
216 |
jpanel1.add(lblFieldName,cc.xy(2,2)); |
217 |
|
218 |
txtFieldName.setName("txtFieldName");
|
219 |
jpanel1.add(txtFieldName,cc.xy(4,2)); |
220 |
|
221 |
lblFieldType.setName("lblFieldType");
|
222 |
lblFieldType.setText("_Field_type");
|
223 |
jpanel1.add(lblFieldType,cc.xy(2,4)); |
224 |
|
225 |
tabAditionalFields.setName("tabAditionalFields");
|
226 |
tabAditionalFields.addTab("_Basic_fields",null,createPanel1()); |
227 |
tabAditionalFields.addTab("_Geometry",null,createPanel3()); |
228 |
tabAditionalFields.addTab("_Time",null,createPanel5()); |
229 |
tabAditionalFields.addTab("_Tags",null,createPanel7()); |
230 |
tabAditionalFields.addTab("_ForeingKey",null,createPanel9()); |
231 |
tabAditionalFields.addTab("_Visualization",null,createPanel10()); |
232 |
jpanel1.add(tabAditionalFields,cc.xywh(2,8,3,1)); |
233 |
|
234 |
jpanel1.add(createPanel14(),cc.xy(4,6)); |
235 |
jpanel1.add(createPanel15(),cc.xy(4,4)); |
236 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9 }); |
237 |
return jpanel1;
|
238 |
} |
239 |
|
240 |
public JPanel createPanel1() |
241 |
{ |
242 |
JPanel jpanel1 = new JPanel(); |
243 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,FILL:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); |
244 |
CellConstraints cc = new CellConstraints();
|
245 |
jpanel1.setLayout(formlayout1); |
246 |
|
247 |
lblSize.setName("lblSize");
|
248 |
lblSize.setText("_Size");
|
249 |
jpanel1.add(lblSize,cc.xy(2,4)); |
250 |
|
251 |
txtSize.setName("txtSize");
|
252 |
jpanel1.add(txtSize,cc.xy(4,4)); |
253 |
|
254 |
lblPrecision.setName("lblPrecision");
|
255 |
lblPrecision.setText("_Total_digits_precision");
|
256 |
lblPrecision.setToolTipText("_Number_of_digits_used_to_represent_the_number_Includes_the_digits_of_the_integer_part_and_the_digits_of_the_decimal_part");
|
257 |
jpanel1.add(lblPrecision,cc.xy(2,6)); |
258 |
|
259 |
lblDefaultValue.setName("lblDefaultValue");
|
260 |
lblDefaultValue.setText("_Default_value");
|
261 |
jpanel1.add(lblDefaultValue,cc.xy(2,10)); |
262 |
|
263 |
txtPrecision.setName("txtPrecision");
|
264 |
txtPrecision.setToolTipText("_Number_of_digits_used_to_represent_the_number_Includes_the_digits_of_the_integer_part_and_the_digits_of_the_decimal_part");
|
265 |
jpanel1.add(txtPrecision,cc.xy(4,6)); |
266 |
|
267 |
txtDefaultValue.setName("txtDefaultValue");
|
268 |
jpanel1.add(txtDefaultValue,cc.xy(4,10)); |
269 |
|
270 |
lblDataProfile.setName("lblDataProfile");
|
271 |
lblDataProfile.setText("_Data_profile");
|
272 |
jpanel1.add(lblDataProfile,cc.xy(2,12)); |
273 |
|
274 |
cboDataProfile.setName("cboDataProfile");
|
275 |
jpanel1.add(cboDataProfile,cc.xy(4,12)); |
276 |
|
277 |
chkVirtualField.setActionCommand("Campo virtual");
|
278 |
chkVirtualField.setName("chkVirtualField");
|
279 |
chkVirtualField.setText("_Virtual_field");
|
280 |
jpanel1.add(chkVirtualField,cc.xy(2,14)); |
281 |
|
282 |
lblScale.setName("lblScale");
|
283 |
lblScale.setText("_Decimal_digits_escale");
|
284 |
lblScale.setToolTipText("_Number_of_decimal_digits_used_to_represent_the_number");
|
285 |
jpanel1.add(lblScale,cc.xy(2,8)); |
286 |
|
287 |
txtScale.setName("txtScale");
|
288 |
txtScale.setToolTipText("_Number_of_decimal_digits_used_to_represent_the_number");
|
289 |
jpanel1.add(txtScale,cc.xy(4,8)); |
290 |
|
291 |
lblRelationType.setName("lblRelationType");
|
292 |
lblRelationType.setText("_Relation_type");
|
293 |
jpanel1.add(lblRelationType,cc.xy(2,16)); |
294 |
|
295 |
cboRelationType.setName("cboRelationType");
|
296 |
jpanel1.add(cboRelationType,cc.xy(4,16)); |
297 |
|
298 |
lblDisplaySize.setName("lblDisplaySize");
|
299 |
lblDisplaySize.setText("_Characters_in_display");
|
300 |
lblDisplaySize.setToolTipText("_Number_of_characters_required_to_display_the_data_in_this_field_Leave_it_empty_or_zero_to_be_automatically_calculated");
|
301 |
jpanel1.add(lblDisplaySize,cc.xy(2,2)); |
302 |
|
303 |
txtDisplaySize.setName("txtDisplaySize");
|
304 |
txtDisplaySize.setToolTipText("_Number_of_bytes_required_to_store_the_data_in_this_field_Leave_it_empty_or_zero_to_be_automatically_calculated_This_value_is_dependent_on_the_type_of_layer");
|
305 |
jpanel1.add(txtDisplaySize,cc.xy(4,2)); |
306 |
|
307 |
jpanel1.add(createPanel2(),cc.xy(4,14)); |
308 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 }); |
309 |
return jpanel1;
|
310 |
} |
311 |
|
312 |
public JPanel createPanel2() |
313 |
{ |
314 |
JPanel jpanel1 = new JPanel(); |
315 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
316 |
CellConstraints cc = new CellConstraints();
|
317 |
jpanel1.setLayout(formlayout1); |
318 |
|
319 |
btnVirtualFieldBookmarks.setActionCommand("...");
|
320 |
btnVirtualFieldBookmarks.setName("btnVirtualFieldBookmarks");
|
321 |
btnVirtualFieldBookmarks.setText("...");
|
322 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
323 |
btnVirtualFieldBookmarks.setBorder(emptyborder1); |
324 |
jpanel1.add(btnVirtualFieldBookmarks,cc.xy(7,1)); |
325 |
|
326 |
txtVirtualField.setName("txtVirtualField");
|
327 |
jpanel1.add(txtVirtualField,cc.xy(1,1)); |
328 |
|
329 |
btnVirtualFieldHistory.setActionCommand("...");
|
330 |
btnVirtualFieldHistory.setName("btnVirtualFieldHistory");
|
331 |
btnVirtualFieldHistory.setText("...");
|
332 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
333 |
btnVirtualFieldHistory.setBorder(emptyborder2); |
334 |
jpanel1.add(btnVirtualFieldHistory,cc.xy(5,1)); |
335 |
|
336 |
btnVirtualField.setActionCommand("...");
|
337 |
btnVirtualField.setName("btnVirtualField");
|
338 |
btnVirtualField.setText("...");
|
339 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
340 |
btnVirtualField.setBorder(emptyborder3); |
341 |
jpanel1.add(btnVirtualField,cc.xy(3,1)); |
342 |
|
343 |
addFillComponents(jpanel1,new int[]{ 2,4,6 },new int[0]); |
344 |
return jpanel1;
|
345 |
} |
346 |
|
347 |
public JPanel createPanel3() |
348 |
{ |
349 |
JPanel jpanel1 = new JPanel(); |
350 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE"); |
351 |
CellConstraints cc = new CellConstraints();
|
352 |
jpanel1.setLayout(formlayout1); |
353 |
|
354 |
lblGeometryType.setName("lblGeometryType");
|
355 |
lblGeometryType.setText("_Geometry_type");
|
356 |
jpanel1.add(lblGeometryType,cc.xy(2,2)); |
357 |
|
358 |
lblGeometrySubtype.setName("lblGeometrySubtype");
|
359 |
lblGeometrySubtype.setText("_Geometry_subtype");
|
360 |
jpanel1.add(lblGeometrySubtype,cc.xy(2,4)); |
361 |
|
362 |
lblCRS.setName("lblCRS");
|
363 |
lblCRS.setText("_CRS");
|
364 |
jpanel1.add(lblCRS,cc.xy(2,6)); |
365 |
|
366 |
cboGeometryType.setName("cboGeometryType");
|
367 |
jpanel1.add(cboGeometryType,cc.xy(4,2)); |
368 |
|
369 |
cboGeometrySubtype.setName("cboGeometrySubtype");
|
370 |
jpanel1.add(cboGeometrySubtype,cc.xy(4,4)); |
371 |
|
372 |
jpanel1.add(createPanel4(),cc.xy(4,6)); |
373 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7 }); |
374 |
return jpanel1;
|
375 |
} |
376 |
|
377 |
public JPanel createPanel4() |
378 |
{ |
379 |
JPanel jpanel1 = new JPanel(); |
380 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
381 |
CellConstraints cc = new CellConstraints();
|
382 |
jpanel1.setLayout(formlayout1); |
383 |
|
384 |
btnCRS.setActionCommand("...");
|
385 |
btnCRS.setName("btnCRS");
|
386 |
btnCRS.setText("...");
|
387 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
388 |
btnCRS.setBorder(emptyborder1); |
389 |
jpanel1.add(btnCRS,cc.xy(3,1)); |
390 |
|
391 |
txtCRS.setName("txtCRS");
|
392 |
jpanel1.add(txtCRS,cc.xy(1,1)); |
393 |
|
394 |
addFillComponents(jpanel1,new int[]{ 2 },new int[0]); |
395 |
return jpanel1;
|
396 |
} |
397 |
|
398 |
public JPanel createPanel5() |
399 |
{ |
400 |
JPanel jpanel1 = new JPanel(); |
401 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE"); |
402 |
CellConstraints cc = new CellConstraints();
|
403 |
jpanel1.setLayout(formlayout1); |
404 |
|
405 |
lblDateFormat.setName("lblDateFormat");
|
406 |
lblDateFormat.setText("_Date_format");
|
407 |
jpanel1.add(lblDateFormat,cc.xy(2,2)); |
408 |
|
409 |
cboDateFormat.setEditable(true);
|
410 |
cboDateFormat.setName("cboDateFormat");
|
411 |
cboDateFormat.setRequestFocusEnabled(false);
|
412 |
jpanel1.add(cboDateFormat,cc.xy(4,2)); |
413 |
|
414 |
lblInterval.setName("lblInterval");
|
415 |
lblInterval.setText("_Interval");
|
416 |
jpanel1.add(lblInterval,new CellConstraints(2,5,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
417 |
|
418 |
jpanel1.add(createPanel6(),cc.xy(4,5)); |
419 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6 }); |
420 |
return jpanel1;
|
421 |
} |
422 |
|
423 |
public JPanel createPanel6() |
424 |
{ |
425 |
JPanel jpanel1 = new JPanel(); |
426 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); |
427 |
CellConstraints cc = new CellConstraints();
|
428 |
jpanel1.setLayout(formlayout1); |
429 |
|
430 |
lblIntervalStart.setName("lblIntervalStart");
|
431 |
lblIntervalStart.setText("_Start");
|
432 |
jpanel1.add(lblIntervalStart,cc.xy(1,1)); |
433 |
|
434 |
lblIntervalEnd.setName("lblIntervalEnd");
|
435 |
lblIntervalEnd.setText("_End");
|
436 |
jpanel1.add(lblIntervalEnd,cc.xy(1,3)); |
437 |
|
438 |
txtIntervalStart.setName("txtIntervalStart");
|
439 |
jpanel1.add(txtIntervalStart,cc.xy(3,1)); |
440 |
|
441 |
btnIntervalStart.setActionCommand("...");
|
442 |
btnIntervalStart.setName("btnIntervalStart");
|
443 |
btnIntervalStart.setText("...");
|
444 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
445 |
btnIntervalStart.setBorder(emptyborder1); |
446 |
jpanel1.add(btnIntervalStart,cc.xy(5,1)); |
447 |
|
448 |
btnIntervalEnd.setActionCommand("...");
|
449 |
btnIntervalEnd.setName("btnIntervalEnd");
|
450 |
btnIntervalEnd.setText("...");
|
451 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
452 |
btnIntervalEnd.setBorder(emptyborder2); |
453 |
jpanel1.add(btnIntervalEnd,cc.xy(5,3)); |
454 |
|
455 |
txtIntervalEnd.setName("txtIntervalEnd");
|
456 |
jpanel1.add(txtIntervalEnd,cc.xy(3,3)); |
457 |
|
458 |
addFillComponents(jpanel1,new int[]{ 2,4 },new int[]{ 2 }); |
459 |
return jpanel1;
|
460 |
} |
461 |
|
462 |
public JPanel createPanel7() |
463 |
{ |
464 |
JPanel jpanel1 = new JPanel(); |
465 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE"); |
466 |
CellConstraints cc = new CellConstraints();
|
467 |
jpanel1.setLayout(formlayout1); |
468 |
|
469 |
tblTags.setName("tblTags");
|
470 |
JScrollPane jscrollpane1 = new JScrollPane(); |
471 |
jscrollpane1.setViewportView(tblTags); |
472 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
473 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
474 |
jpanel1.add(jscrollpane1,cc.xywh(2,2,3,1)); |
475 |
|
476 |
lblTagsName.setName("lblTagsName");
|
477 |
lblTagsName.setText("_Name");
|
478 |
jpanel1.add(lblTagsName,cc.xy(2,4)); |
479 |
|
480 |
cboTagsName.setEditable(true);
|
481 |
cboTagsName.setName("cboTagsName");
|
482 |
cboTagsName.setRequestFocusEnabled(false);
|
483 |
jpanel1.add(cboTagsName,cc.xy(4,4)); |
484 |
|
485 |
lblTagsValue.setName("lblTagsValue");
|
486 |
lblTagsValue.setText("_Value");
|
487 |
jpanel1.add(lblTagsValue,cc.xy(2,6)); |
488 |
|
489 |
cboTagsValue.setEditable(true);
|
490 |
cboTagsValue.setName("cboTagsValue");
|
491 |
cboTagsValue.setRequestFocusEnabled(false);
|
492 |
jpanel1.add(cboTagsValue,cc.xy(4,6)); |
493 |
|
494 |
jpanel1.add(createPanel8(),cc.xywh(6,2,1,5)); |
495 |
lbTagsLabelDescription.setName("lbTagsLabelDescription");
|
496 |
lbTagsLabelDescription.setText("_Description");
|
497 |
jpanel1.add(lbTagsLabelDescription,cc.xy(2,8)); |
498 |
|
499 |
lblTagsDescription.setName("lblTagsDescription");
|
500 |
jpanel1.add(lblTagsDescription,cc.xy(4,8)); |
501 |
|
502 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6,7,8,9 }); |
503 |
return jpanel1;
|
504 |
} |
505 |
|
506 |
public JPanel createPanel8() |
507 |
{ |
508 |
JPanel jpanel1 = new JPanel(); |
509 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)"); |
510 |
CellConstraints cc = new CellConstraints();
|
511 |
jpanel1.setLayout(formlayout1); |
512 |
|
513 |
btnTagsAdd.setActionCommand("_Add");
|
514 |
btnTagsAdd.setName("btnTagsAdd");
|
515 |
btnTagsAdd.setText("_Add");
|
516 |
jpanel1.add(btnTagsAdd,cc.xy(1,1)); |
517 |
|
518 |
btnTagsUpdate.setActionCommand("_Update");
|
519 |
btnTagsUpdate.setName("btnTagsUpdate");
|
520 |
btnTagsUpdate.setText("_Update");
|
521 |
jpanel1.add(btnTagsUpdate,cc.xy(1,3)); |
522 |
|
523 |
btnTagsRemove.setActionCommand("_Remove");
|
524 |
btnTagsRemove.setName("btnTagsRemove");
|
525 |
btnTagsRemove.setText("_Remove");
|
526 |
jpanel1.add(btnTagsRemove,cc.xy(1,5)); |
527 |
|
528 |
addFillComponents(jpanel1,new int[0],new int[]{ 2,4,6 }); |
529 |
return jpanel1;
|
530 |
} |
531 |
|
532 |
public JPanel createPanel9() |
533 |
{ |
534 |
JPanel jpanel1 = new JPanel(); |
535 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE"); |
536 |
CellConstraints cc = new CellConstraints();
|
537 |
jpanel1.setLayout(formlayout1); |
538 |
|
539 |
chkIsForeingKey.setActionCommand("_is_foreing_key");
|
540 |
chkIsForeingKey.setName("chkIsForeingKey");
|
541 |
chkIsForeingKey.setText("_is_foreing_key");
|
542 |
jpanel1.add(chkIsForeingKey,cc.xywh(2,2,3,1)); |
543 |
|
544 |
lblForeingKeyTableName.setName("lblForeingKeyTableName");
|
545 |
lblForeingKeyTableName.setText("_Table");
|
546 |
jpanel1.add(lblForeingKeyTableName,cc.xy(2,6)); |
547 |
|
548 |
lblForeingKeyCodeName.setName("lblForeingKeyCodeName");
|
549 |
lblForeingKeyCodeName.setText("_Code");
|
550 |
jpanel1.add(lblForeingKeyCodeName,cc.xy(2,8)); |
551 |
|
552 |
lblForeingKeyLabelFormula.setName("lblForeingKeyLabelFormula");
|
553 |
lblForeingKeyLabelFormula.setText("_Label_formula");
|
554 |
jpanel1.add(lblForeingKeyLabelFormula,cc.xy(2,10)); |
555 |
|
556 |
cboForeingKeyTableName.setEditable(true);
|
557 |
cboForeingKeyTableName.setName("cboForeingKeyTableName");
|
558 |
cboForeingKeyTableName.setRequestFocusEnabled(false);
|
559 |
jpanel1.add(cboForeingKeyTableName,cc.xywh(4,6,7,1)); |
560 |
|
561 |
cboForeingKeyCodeName.setEditable(true);
|
562 |
cboForeingKeyCodeName.setName("cboForeingKeyCodeName");
|
563 |
cboForeingKeyCodeName.setRequestFocusEnabled(false);
|
564 |
jpanel1.add(cboForeingKeyCodeName,cc.xywh(4,8,7,1)); |
565 |
|
566 |
txtForeingKeyFormula.setName("txtForeingKeyFormula");
|
567 |
jpanel1.add(txtForeingKeyFormula,cc.xy(4,10)); |
568 |
|
569 |
lblIsClosedList.setName("lblIsClosedList");
|
570 |
lblIsClosedList.setText("_is_closed_list");
|
571 |
jpanel1.add(lblIsClosedList,cc.xy(2,4)); |
572 |
|
573 |
chkIsClosedList.setName("chkIsClosedList");
|
574 |
jpanel1.add(chkIsClosedList,cc.xy(4,4)); |
575 |
|
576 |
btnForeingKeyFormula.setActionCommand("...");
|
577 |
btnForeingKeyFormula.setName("btnForeingKeyFormula");
|
578 |
btnForeingKeyFormula.setText("...");
|
579 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
580 |
btnForeingKeyFormula.setBorder(emptyborder1); |
581 |
jpanel1.add(btnForeingKeyFormula,cc.xy(6,10)); |
582 |
|
583 |
btnForeingKeyFormulaHistory.setActionCommand("...");
|
584 |
btnForeingKeyFormulaHistory.setName("btnForeingKeyFormulaHistory");
|
585 |
btnForeingKeyFormulaHistory.setText("...");
|
586 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
587 |
btnForeingKeyFormulaHistory.setBorder(emptyborder2); |
588 |
jpanel1.add(btnForeingKeyFormulaHistory,cc.xy(8,10)); |
589 |
|
590 |
btnForeingKeyFormulaBookmarks.setActionCommand("...");
|
591 |
btnForeingKeyFormulaBookmarks.setName("btnForeingKeyFormulaBookmarks");
|
592 |
btnForeingKeyFormulaBookmarks.setText("...");
|
593 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
594 |
btnForeingKeyFormulaBookmarks.setBorder(emptyborder3); |
595 |
jpanel1.add(btnForeingKeyFormulaBookmarks,cc.xy(10,10)); |
596 |
|
597 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9,10,11 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11 }); |
598 |
return jpanel1;
|
599 |
} |
600 |
|
601 |
public JPanel createPanel10() |
602 |
{ |
603 |
JPanel jpanel1 = new JPanel(); |
604 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0)"); |
605 |
CellConstraints cc = new CellConstraints();
|
606 |
jpanel1.setLayout(formlayout1); |
607 |
|
608 |
tabLayout.setName("tabLayout");
|
609 |
tabLayout.setTabPlacement(JTabbedPane.LEFT);
|
610 |
tabLayout.addTab("_Basic",null,createPanel11()); |
611 |
tabLayout.addTab("_Values",null,createPanel12()); |
612 |
jpanel1.add(tabLayout,cc.xy(1,1)); |
613 |
|
614 |
addFillComponents(jpanel1,new int[0],new int[0]); |
615 |
return jpanel1;
|
616 |
} |
617 |
|
618 |
public JPanel createPanel11() |
619 |
{ |
620 |
JPanel jpanel1 = new JPanel(); |
621 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0)"); |
622 |
CellConstraints cc = new CellConstraints();
|
623 |
jpanel1.setLayout(formlayout1); |
624 |
|
625 |
lblGroup.setName("lblGroup");
|
626 |
lblGroup.setText("_Group");
|
627 |
jpanel1.add(lblGroup,cc.xy(2,2)); |
628 |
|
629 |
lblOrder.setName("lblOrder");
|
630 |
lblOrder.setText("_Order");
|
631 |
jpanel1.add(lblOrder,cc.xy(2,4)); |
632 |
|
633 |
cboGroup.setEditable(true);
|
634 |
cboGroup.setName("cboGroup");
|
635 |
cboGroup.setRequestFocusEnabled(false);
|
636 |
jpanel1.add(cboGroup,cc.xy(4,2)); |
637 |
|
638 |
txtOrder.setName("txtOrder");
|
639 |
jpanel1.add(txtOrder,cc.xy(4,4)); |
640 |
|
641 |
lblHidden.setName("lblHidden");
|
642 |
lblHidden.setText("_Hidden");
|
643 |
jpanel1.add(lblHidden,cc.xy(2,6)); |
644 |
|
645 |
chkHidden.setName("chkHidden");
|
646 |
jpanel1.add(chkHidden,cc.xy(4,6)); |
647 |
|
648 |
lblLabel.setName("lblLabel");
|
649 |
lblLabel.setText("_Label");
|
650 |
jpanel1.add(lblLabel,cc.xy(2,8)); |
651 |
|
652 |
txtLabel.setName("txtLabel");
|
653 |
jpanel1.add(txtLabel,cc.xy(4,8)); |
654 |
|
655 |
lblDescription.setName("lblDescription");
|
656 |
lblDescription.setText("_Description");
|
657 |
lblDescription.setVerticalAlignment(JLabel.TOP);
|
658 |
jpanel1.add(lblDescription,new CellConstraints(2,10,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
659 |
|
660 |
txtDescription.setName("txtDescription");
|
661 |
JScrollPane jscrollpane1 = new JScrollPane(); |
662 |
jscrollpane1.setViewportView(txtDescription); |
663 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
664 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
665 |
jpanel1.add(jscrollpane1,cc.xy(4,10)); |
666 |
|
667 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10 }); |
668 |
return jpanel1;
|
669 |
} |
670 |
|
671 |
public JPanel createPanel12() |
672 |
{ |
673 |
JPanel jpanel1 = new JPanel(); |
674 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:2DLU:NONE,FILL:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE"); |
675 |
CellConstraints cc = new CellConstraints();
|
676 |
jpanel1.setLayout(formlayout1); |
677 |
|
678 |
lblAvailableValues.setName("lblAvailableValues");
|
679 |
lblAvailableValues.setText("_List_of_values");
|
680 |
jpanel1.add(lblAvailableValues,cc.xywh(2,2,5,1)); |
681 |
|
682 |
lstAvailableValues.setName("lstAvailableValues");
|
683 |
JScrollPane jscrollpane1 = new JScrollPane(); |
684 |
jscrollpane1.setViewportView(lstAvailableValues); |
685 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
686 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
687 |
jpanel1.add(jscrollpane1,new CellConstraints(2,4,3,1,CellConstraints.DEFAULT,CellConstraints.FILL)); |
688 |
|
689 |
lblAvailableValuesLabel.setName("lblAvailableValuesLabel");
|
690 |
lblAvailableValuesLabel.setText("_Label");
|
691 |
jpanel1.add(lblAvailableValuesLabel,cc.xy(2,6)); |
692 |
|
693 |
txtAvailableValuesLabel.setName("txtAvailableValuesLabel");
|
694 |
jpanel1.add(txtAvailableValuesLabel,cc.xy(4,6)); |
695 |
|
696 |
lblAvailableValuesValue.setName("lblAvailableValuesValue");
|
697 |
lblAvailableValuesValue.setText("_Value");
|
698 |
jpanel1.add(lblAvailableValuesValue,cc.xy(2,8)); |
699 |
|
700 |
txtAvailableValuesValue.setName("txtAvailableValuesValue");
|
701 |
jpanel1.add(txtAvailableValuesValue,cc.xy(4,8)); |
702 |
|
703 |
jpanel1.add(createPanel13(),cc.xywh(6,4,1,5)); |
704 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6,7,8,9 }); |
705 |
return jpanel1;
|
706 |
} |
707 |
|
708 |
public JPanel createPanel13() |
709 |
{ |
710 |
JPanel jpanel1 = new JPanel(); |
711 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,FILL:2DLU:NONE"); |
712 |
CellConstraints cc = new CellConstraints();
|
713 |
jpanel1.setLayout(formlayout1); |
714 |
|
715 |
btnAvailableValuesAdd.setActionCommand("_Add");
|
716 |
btnAvailableValuesAdd.setName("btnAvailableValuesAdd");
|
717 |
btnAvailableValuesAdd.setText("_Add");
|
718 |
jpanel1.add(btnAvailableValuesAdd,cc.xy(1,1)); |
719 |
|
720 |
btnAvailableValuesUpdate.setActionCommand("_Update");
|
721 |
btnAvailableValuesUpdate.setName("btnAvailableValuesUpdate");
|
722 |
btnAvailableValuesUpdate.setText("_Update");
|
723 |
jpanel1.add(btnAvailableValuesUpdate,cc.xy(1,3)); |
724 |
|
725 |
btnAvailableValuesRemove.setActionCommand("_Remove");
|
726 |
btnAvailableValuesRemove.setName("btnAvailableValuesRemove");
|
727 |
btnAvailableValuesRemove.setText("_Remove");
|
728 |
jpanel1.add(btnAvailableValuesRemove,cc.xy(1,5)); |
729 |
|
730 |
btnAvailableValuesRemoveAll.setActionCommand("_Remove");
|
731 |
btnAvailableValuesRemoveAll.setName("btnAvailableValuesRemoveAll");
|
732 |
btnAvailableValuesRemoveAll.setText("_Remove_all");
|
733 |
jpanel1.add(btnAvailableValuesRemoveAll,cc.xy(1,7)); |
734 |
|
735 |
addFillComponents(jpanel1,new int[0],new int[]{ 2,4,6,8 }); |
736 |
return jpanel1;
|
737 |
} |
738 |
|
739 |
public JPanel createPanel14() |
740 |
{ |
741 |
JPanel jpanel1 = new JPanel(); |
742 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
743 |
CellConstraints cc = new CellConstraints();
|
744 |
jpanel1.setLayout(formlayout1); |
745 |
|
746 |
lblIsPrimaryKey.setName("lblIsPrimaryKey");
|
747 |
lblIsPrimaryKey.setText("_Primary_key");
|
748 |
jpanel1.add(lblIsPrimaryKey,cc.xy(1,1)); |
749 |
|
750 |
chkIsPrimaryKey.setName("chkIsPrimaryKey");
|
751 |
jpanel1.add(chkIsPrimaryKey,cc.xy(3,1)); |
752 |
|
753 |
lblIsAutomatic.setName("lblIsAutomatic");
|
754 |
lblIsAutomatic.setText("_Value_automatic");
|
755 |
jpanel1.add(lblIsAutomatic,cc.xy(5,1)); |
756 |
|
757 |
chkIsAutomatic.setName("chkIsAutomatic");
|
758 |
jpanel1.add(chkIsAutomatic,cc.xy(7,1)); |
759 |
|
760 |
lblAllowNulls.setName("lblAllowNulls");
|
761 |
lblAllowNulls.setText("_Allow_nulls");
|
762 |
jpanel1.add(lblAllowNulls,cc.xy(9,1)); |
763 |
|
764 |
chkAllowNulls.setName("chkAllowNulls");
|
765 |
jpanel1.add(chkAllowNulls,cc.xy(11,1)); |
766 |
|
767 |
addFillComponents(jpanel1,new int[]{ 2,4,6,8,10,12 },new int[0]); |
768 |
return jpanel1;
|
769 |
} |
770 |
|
771 |
public JPanel createPanel15() |
772 |
{ |
773 |
JPanel jpanel1 = new JPanel(); |
774 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
775 |
CellConstraints cc = new CellConstraints();
|
776 |
jpanel1.setLayout(formlayout1); |
777 |
|
778 |
cboFieldType.setName("cboFieldType");
|
779 |
jpanel1.add(cboFieldType,cc.xy(1,1)); |
780 |
|
781 |
btnFieldType.setIcon(loadImage("src/main/resources/org/gvsig/fmap/dal/swing/impl/featuretype/picker-datatype.png"));
|
782 |
btnFieldType.setName("btnFieldType");
|
783 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
784 |
btnFieldType.setBorder(emptyborder1); |
785 |
jpanel1.add(btnFieldType,cc.xy(3,1)); |
786 |
|
787 |
addFillComponents(jpanel1,new int[]{ 2 },new int[0]); |
788 |
return jpanel1;
|
789 |
} |
790 |
|
791 |
/**
|
792 |
* Initializer
|
793 |
*/
|
794 |
protected void initializePanel() |
795 |
{ |
796 |
setLayout(new BorderLayout()); |
797 |
add(createPanel(), BorderLayout.CENTER);
|
798 |
} |
799 |
|
800 |
|
801 |
} |