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