Statistics
| Revision:

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 / FeatureTypeAttributePanelView.java @ 44338

History | View | Annotate | Download (28.4 KB)

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