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 @ 44262

History | View | Annotate | Download (28 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.JPanel;
18
import javax.swing.JScrollPane;
19
import javax.swing.JTabbedPane;
20
import javax.swing.JTable;
21
import javax.swing.JTextArea;
22
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
   JLabel lblDataProfile = new JLabel();
40
   JComboBox cboDataProfile = new JComboBox();
41
   JCheckBox chkVirtualField = new JCheckBox();
42
   JButton btnVirtualField = new JButton();
43
   JTextField txtVirtualField = new JTextField();
44
   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
   JTabbedPane tabLayout = new JTabbedPane();
61
   JLabel lblGroup = new JLabel();
62
   JLabel lblOrder = new JLabel();
63
   JComboBox cboGroup = new JComboBox();
64
   JTextField txtOrder = new JTextField();
65
   JLabel lblHidden = new JLabel();
66
   JCheckBox chkHidden = new JCheckBox();
67
   JLabel lblLabel = new JLabel();
68
   JTextField txtLabel = new JTextField();
69
   JLabel lblDescription = new JLabel();
70
   JTextArea txtDescription = new JTextArea();
71
   JLabel lblMinValue = new JLabel();
72
   JTextField txtMinValue = new JTextField();
73
   JLabel lblMaxValue = new JLabel();
74
   JTextField txtMaxValue = new JTextField();
75
   JLabel lblAvailableValues = new JLabel();
76
   JButton btnAvailableValuesAdd = new JButton();
77
   JButton btnAvailableValuesUpdate = new JButton();
78
   JButton btnAvailableValuesRemove = new JButton();
79
   JLabel lblAvailableValuesLabel = new JLabel();
80
   JLabel lblAvailableValuesValue = new JLabel();
81
   JComboBox cboAvailableValues = new JComboBox();
82
   JTextField txtAvailableValuesLabel = new JTextField();
83
   JTextField txtAvailableValuesValue = new JTextField();
84
   JLabel lblTagsName = new JLabel();
85
   JLabel lblTagsValue = new JLabel();
86
   JComboBox cboTagsName = new JComboBox();
87
   JTextField txtTagsValue = new JTextField();
88
   JTable tblTags = new JTable();
89
   JLabel lblTagsDescription = new JLabel();
90
   JButton btnTagsAdd = new JButton();
91
   JButton btnTagsUpdate = new JButton();
92
   JButton btnTagsRemove = new JButton();
93
   JCheckBox chkIsForeingKey = new JCheckBox();
94
   JLabel lblForeingKeyTableName = new JLabel();
95
   JLabel lblForeingKeyCodeName = new JLabel();
96
   JLabel lblForeingKeyLabelFormula = new JLabel();
97
   JComboBox cboForeingKeyTableName = new JComboBox();
98
   JComboBox cboForeingKeyCodeName = new JComboBox();
99
   JTextField txtForeingKeyFormula = new JTextField();
100
   JButton btnForeingKeyFormula = new JButton();
101
   JLabel lblIsSelectable = new JLabel();
102
   JCheckBox chkIsSelectable = new JCheckBox();
103
   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

    
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
      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
      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
      tabAditionalFields.addTab("_Basic_fields",null,createPanel1());
220
      tabAditionalFields.addTab("_Geometry",null,createPanel3());
221
      tabAditionalFields.addTab("_Time",null,createPanel5());
222
      tabAditionalFields.addTab("_Visualization",null,createPanel7());
223
      tabAditionalFields.addTab("_ForeingKey",null,createPanel15());
224
      jpanel1.add(tabAditionalFields,cc.xywh(2,8,3,1));
225

    
226
      jpanel1.add(createPanel16(),cc.xy(4,6));
227
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9 });
228
      return jpanel1;
229
   }
230

    
231
   public JPanel createPanel1()
232
   {
233
      JPanel jpanel1 = new JPanel();
234
      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");
235
      CellConstraints cc = new CellConstraints();
236
      jpanel1.setLayout(formlayout1);
237

    
238
      lblSize.setName("lblSize");
239
      lblSize.setText("_Size");
240
      jpanel1.add(lblSize,cc.xy(2,2));
241

    
242
      txtSize.setName("txtSize");
243
      jpanel1.add(txtSize,cc.xy(4,2));
244

    
245
      lblPrecision.setName("lblPrecision");
246
      lblPrecision.setText("_Precision");
247
      jpanel1.add(lblPrecision,cc.xy(2,4));
248

    
249
      lblDefaultValue.setName("lblDefaultValue");
250
      lblDefaultValue.setText("_Default_value");
251
      jpanel1.add(lblDefaultValue,cc.xy(2,6));
252

    
253
      txtPrecision.setName("txtPrecision");
254
      jpanel1.add(txtPrecision,cc.xy(4,4));
255

    
256
      txtDefaultValue.setName("txtDefaultValue");
257
      jpanel1.add(txtDefaultValue,cc.xy(4,6));
258

    
259
      lblDataProfile.setName("lblDataProfile");
260
      lblDataProfile.setText("_Data_profile");
261
      jpanel1.add(lblDataProfile,cc.xy(2,8));
262

    
263
      cboDataProfile.setName("cboDataProfile");
264
      jpanel1.add(cboDataProfile,cc.xy(4,8));
265

    
266
      chkVirtualField.setActionCommand("Campo virtual");
267
      chkVirtualField.setName("chkVirtualField");
268
      chkVirtualField.setText("_Virtual_field");
269
      jpanel1.add(chkVirtualField,cc.xy(2,10));
270

    
271
      jpanel1.add(createPanel2(),cc.xy(4,10));
272
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10 });
273
      return jpanel1;
274
   }
275

    
276
   public JPanel createPanel2()
277
   {
278
      JPanel jpanel1 = new JPanel();
279
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
280
      CellConstraints cc = new CellConstraints();
281
      jpanel1.setLayout(formlayout1);
282

    
283
      btnVirtualField.setActionCommand("...");
284
      btnVirtualField.setName("btnVirtualField");
285
      btnVirtualField.setText("...");
286
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
287
      btnVirtualField.setBorder(emptyborder1);
288
      jpanel1.add(btnVirtualField,cc.xy(3,1));
289

    
290
      txtVirtualField.setName("txtVirtualField");
291
      jpanel1.add(txtVirtualField,cc.xy(1,1));
292

    
293
      addFillComponents(jpanel1,new int[]{ 2 },new int[0]);
294
      return jpanel1;
295
   }
296

    
297
   public JPanel createPanel3()
298
   {
299
      JPanel jpanel1 = new JPanel();
300
      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");
301
      CellConstraints cc = new CellConstraints();
302
      jpanel1.setLayout(formlayout1);
303

    
304
      lblGeometryType.setName("lblGeometryType");
305
      lblGeometryType.setText("_Geometry_type");
306
      jpanel1.add(lblGeometryType,cc.xy(2,2));
307

    
308
      lblGeometrySubtype.setName("lblGeometrySubtype");
309
      lblGeometrySubtype.setText("_Geometry_subtype");
310
      jpanel1.add(lblGeometrySubtype,cc.xy(2,4));
311

    
312
      lblCRS.setName("lblCRS");
313
      lblCRS.setText("_CRS");
314
      jpanel1.add(lblCRS,cc.xy(2,6));
315

    
316
      cboGeometryType.setName("cboGeometryType");
317
      jpanel1.add(cboGeometryType,cc.xy(4,2));
318

    
319
      cboGeometrySubtype.setName("cboGeometrySubtype");
320
      jpanel1.add(cboGeometrySubtype,cc.xy(4,4));
321

    
322
      jpanel1.add(createPanel4(),cc.xy(4,6));
323
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7 });
324
      return jpanel1;
325
   }
326

    
327
   public JPanel createPanel4()
328
   {
329
      JPanel jpanel1 = new JPanel();
330
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
331
      CellConstraints cc = new CellConstraints();
332
      jpanel1.setLayout(formlayout1);
333

    
334
      btnCRS.setActionCommand("...");
335
      btnCRS.setName("btnCRS");
336
      btnCRS.setText("...");
337
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
338
      btnCRS.setBorder(emptyborder1);
339
      jpanel1.add(btnCRS,cc.xy(3,1));
340

    
341
      txtCRS.setName("txtCRS");
342
      jpanel1.add(txtCRS,cc.xy(1,1));
343

    
344
      addFillComponents(jpanel1,new int[]{ 2 },new int[0]);
345
      return jpanel1;
346
   }
347

    
348
   public JPanel createPanel5()
349
   {
350
      JPanel jpanel1 = new JPanel();
351
      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");
352
      CellConstraints cc = new CellConstraints();
353
      jpanel1.setLayout(formlayout1);
354

    
355
      lblDateFormat.setName("lblDateFormat");
356
      lblDateFormat.setText("_Date_format");
357
      jpanel1.add(lblDateFormat,cc.xy(2,2));
358

    
359
      cboDateFormat.setEditable(true);
360
      cboDateFormat.setName("cboDateFormat");
361
      cboDateFormat.setRequestFocusEnabled(false);
362
      jpanel1.add(cboDateFormat,cc.xy(4,2));
363

    
364
      lblInterval.setName("lblInterval");
365
      lblInterval.setText("_Interval");
366
      jpanel1.add(lblInterval,new CellConstraints(2,5,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
367

    
368
      jpanel1.add(createPanel6(),cc.xy(4,5));
369
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6 });
370
      return jpanel1;
371
   }
372

    
373
   public JPanel createPanel6()
374
   {
375
      JPanel jpanel1 = new JPanel();
376
      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");
377
      CellConstraints cc = new CellConstraints();
378
      jpanel1.setLayout(formlayout1);
379

    
380
      lblIntervalStart.setName("lblIntervalStart");
381
      lblIntervalStart.setText("_Start");
382
      jpanel1.add(lblIntervalStart,cc.xy(1,1));
383

    
384
      lblIntervalEnd.setName("lblIntervalEnd");
385
      lblIntervalEnd.setText("_End");
386
      jpanel1.add(lblIntervalEnd,cc.xy(1,3));
387

    
388
      txtIntervalStart.setName("txtIntervalStart");
389
      jpanel1.add(txtIntervalStart,cc.xy(3,1));
390

    
391
      btnIntervalStart.setActionCommand("...");
392
      btnIntervalStart.setName("btnIntervalStart");
393
      btnIntervalStart.setText("...");
394
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
395
      btnIntervalStart.setBorder(emptyborder1);
396
      jpanel1.add(btnIntervalStart,cc.xy(5,1));
397

    
398
      btnIntervalEnd.setActionCommand("...");
399
      btnIntervalEnd.setName("btnIntervalEnd");
400
      btnIntervalEnd.setText("...");
401
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
402
      btnIntervalEnd.setBorder(emptyborder2);
403
      jpanel1.add(btnIntervalEnd,cc.xy(5,3));
404

    
405
      txtIntervalEnd.setName("txtIntervalEnd");
406
      jpanel1.add(txtIntervalEnd,cc.xy(3,3));
407

    
408
      addFillComponents(jpanel1,new int[]{ 2,4 },new int[]{ 2 });
409
      return jpanel1;
410
   }
411

    
412
   public JPanel createPanel7()
413
   {
414
      JPanel jpanel1 = new JPanel();
415
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0)");
416
      CellConstraints cc = new CellConstraints();
417
      jpanel1.setLayout(formlayout1);
418

    
419
      tabLayout.setName("tabLayout");
420
      tabLayout.setTabPlacement(JTabbedPane.LEFT);
421
      tabLayout.addTab("_Basic",null,createPanel8());
422
      tabLayout.addTab("_Values",null,createPanel9());
423
      tabLayout.addTab("_Tags",null,createPanel13());
424
      jpanel1.add(tabLayout,cc.xy(1,1));
425

    
426
      addFillComponents(jpanel1,new int[0],new int[0]);
427
      return jpanel1;
428
   }
429

    
430
   public JPanel createPanel8()
431
   {
432
      JPanel jpanel1 = new JPanel();
433
      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)");
434
      CellConstraints cc = new CellConstraints();
435
      jpanel1.setLayout(formlayout1);
436

    
437
      lblGroup.setName("lblGroup");
438
      lblGroup.setText("_Group");
439
      jpanel1.add(lblGroup,cc.xy(2,2));
440

    
441
      lblOrder.setName("lblOrder");
442
      lblOrder.setText("_Order");
443
      jpanel1.add(lblOrder,cc.xy(2,4));
444

    
445
      cboGroup.setEditable(true);
446
      cboGroup.setName("cboGroup");
447
      cboGroup.setRequestFocusEnabled(false);
448
      jpanel1.add(cboGroup,cc.xy(4,2));
449

    
450
      txtOrder.setName("txtOrder");
451
      jpanel1.add(txtOrder,cc.xy(4,4));
452

    
453
      lblHidden.setName("lblHidden");
454
      lblHidden.setText("_Hidden");
455
      jpanel1.add(lblHidden,cc.xy(2,6));
456

    
457
      chkHidden.setName("chkHidden");
458
      jpanel1.add(chkHidden,cc.xy(4,6));
459

    
460
      lblLabel.setName("lblLabel");
461
      lblLabel.setText("_Label");
462
      jpanel1.add(lblLabel,cc.xy(2,8));
463

    
464
      txtLabel.setName("txtLabel");
465
      jpanel1.add(txtLabel,cc.xy(4,8));
466

    
467
      lblDescription.setName("lblDescription");
468
      lblDescription.setText("_Description");
469
      lblDescription.setVerticalAlignment(JLabel.TOP);
470
      jpanel1.add(lblDescription,new CellConstraints(2,10,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
471

    
472
      txtDescription.setName("txtDescription");
473
      JScrollPane jscrollpane1 = new JScrollPane();
474
      jscrollpane1.setViewportView(txtDescription);
475
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
476
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
477
      jpanel1.add(jscrollpane1,cc.xy(4,10));
478

    
479
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10 });
480
      return jpanel1;
481
   }
482

    
483
   public JPanel createPanel9()
484
   {
485
      JPanel jpanel1 = new JPanel();
486
      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");
487
      CellConstraints cc = new CellConstraints();
488
      jpanel1.setLayout(formlayout1);
489

    
490
      lblMinValue.setName("lblMinValue");
491
      lblMinValue.setText("_Minimum_value");
492
      jpanel1.add(lblMinValue,cc.xy(2,2));
493

    
494
      txtMinValue.setName("txtMinValue");
495
      jpanel1.add(txtMinValue,cc.xy(4,2));
496

    
497
      lblMaxValue.setName("lblMaxValue");
498
      lblMaxValue.setText("_Maximum_value");
499
      jpanel1.add(lblMaxValue,cc.xy(2,4));
500

    
501
      txtMaxValue.setName("txtMaxValue");
502
      jpanel1.add(txtMaxValue,cc.xy(4,4));
503

    
504
      lblAvailableValues.setName("lblAvailableValues");
505
      lblAvailableValues.setText("_List_of_values");
506
      jpanel1.add(lblAvailableValues,cc.xywh(2,6,3,1));
507

    
508
      jpanel1.add(createPanel10(),cc.xywh(2,7,3,1));
509
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7 });
510
      return jpanel1;
511
   }
512

    
513
   public JPanel createPanel10()
514
   {
515
      JPanel jpanel1 = new JPanel();
516
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
517
      CellConstraints cc = new CellConstraints();
518
      jpanel1.setLayout(formlayout1);
519

    
520
      jpanel1.add(createPanel11(),cc.xy(3,1));
521
      jpanel1.add(createPanel12(),cc.xy(1,1));
522
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1 });
523
      return jpanel1;
524
   }
525

    
526
   public JPanel createPanel11()
527
   {
528
      JPanel jpanel1 = new JPanel();
529
      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)");
530
      CellConstraints cc = new CellConstraints();
531
      jpanel1.setLayout(formlayout1);
532

    
533
      btnAvailableValuesAdd.setActionCommand("_Add");
534
      btnAvailableValuesAdd.setName("btnAvailableValuesAdd");
535
      btnAvailableValuesAdd.setText("_Add");
536
      jpanel1.add(btnAvailableValuesAdd,cc.xy(1,1));
537

    
538
      btnAvailableValuesUpdate.setActionCommand("_Update");
539
      btnAvailableValuesUpdate.setName("btnAvailableValuesUpdate");
540
      btnAvailableValuesUpdate.setText("_Update");
541
      jpanel1.add(btnAvailableValuesUpdate,cc.xy(1,3));
542

    
543
      btnAvailableValuesRemove.setActionCommand("_Remove");
544
      btnAvailableValuesRemove.setName("btnAvailableValuesRemove");
545
      btnAvailableValuesRemove.setText("_Remove");
546
      jpanel1.add(btnAvailableValuesRemove,cc.xy(1,5));
547

    
548
      addFillComponents(jpanel1,new int[0],new int[]{ 2,4,6 });
549
      return jpanel1;
550
   }
551

    
552
   public JPanel createPanel12()
553
   {
554
      JPanel jpanel1 = new JPanel();
555
      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");
556
      CellConstraints cc = new CellConstraints();
557
      jpanel1.setLayout(formlayout1);
558

    
559
      lblAvailableValuesLabel.setName("lblAvailableValuesLabel");
560
      lblAvailableValuesLabel.setText("_Label");
561
      jpanel1.add(lblAvailableValuesLabel,cc.xy(1,3));
562

    
563
      lblAvailableValuesValue.setName("lblAvailableValuesValue");
564
      lblAvailableValuesValue.setText("_Value");
565
      jpanel1.add(lblAvailableValuesValue,cc.xy(1,5));
566

    
567
      cboAvailableValues.setName("cboAvailableValues");
568
      jpanel1.add(cboAvailableValues,cc.xywh(1,1,3,1));
569

    
570
      txtAvailableValuesLabel.setName("txtAvailableValuesLabel");
571
      jpanel1.add(txtAvailableValuesLabel,cc.xy(3,3));
572

    
573
      txtAvailableValuesValue.setName("txtAvailableValuesValue");
574
      jpanel1.add(txtAvailableValuesValue,cc.xy(3,5));
575

    
576
      addFillComponents(jpanel1,new int[]{ 2,3 },new int[]{ 2,4,6 });
577
      return jpanel1;
578
   }
579

    
580
   public JPanel createPanel13()
581
   {
582
      JPanel jpanel1 = new JPanel();
583
      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");
584
      CellConstraints cc = new CellConstraints();
585
      jpanel1.setLayout(formlayout1);
586

    
587
      lblTagsName.setName("lblTagsName");
588
      lblTagsName.setText("_Name");
589
      jpanel1.add(lblTagsName,cc.xy(2,3));
590

    
591
      lblTagsValue.setName("lblTagsValue");
592
      lblTagsValue.setText("_Value");
593
      jpanel1.add(lblTagsValue,cc.xy(2,5));
594

    
595
      cboTagsName.setEditable(true);
596
      cboTagsName.setName("cboTagsName");
597
      cboTagsName.setRequestFocusEnabled(false);
598
      jpanel1.add(cboTagsName,cc.xy(4,3));
599

    
600
      txtTagsValue.setName("txtTagsValue");
601
      jpanel1.add(txtTagsValue,cc.xy(4,5));
602

    
603
      tblTags.setName("tblTags");
604
      JScrollPane jscrollpane1 = new JScrollPane();
605
      jscrollpane1.setViewportView(tblTags);
606
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
607
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
608
      jpanel1.add(jscrollpane1,cc.xywh(2,1,3,1));
609

    
610
      lblTagsDescription.setName("lblTagsDescription");
611
      jpanel1.add(lblTagsDescription,cc.xy(4,6));
612

    
613
      jpanel1.add(createPanel14(),cc.xywh(6,1,1,5));
614
      addFillComponents(jpanel1,new int[]{ 1,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6 });
615
      return jpanel1;
616
   }
617

    
618
   public JPanel createPanel14()
619
   {
620
      JPanel jpanel1 = new JPanel();
621
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");
622
      CellConstraints cc = new CellConstraints();
623
      jpanel1.setLayout(formlayout1);
624

    
625
      btnTagsAdd.setActionCommand("_Add");
626
      btnTagsAdd.setName("btnTagsAdd");
627
      btnTagsAdd.setText("_Add");
628
      jpanel1.add(btnTagsAdd,cc.xy(1,1));
629

    
630
      btnTagsUpdate.setActionCommand("_Update");
631
      btnTagsUpdate.setName("btnTagsUpdate");
632
      btnTagsUpdate.setText("_Update");
633
      jpanel1.add(btnTagsUpdate,cc.xy(1,3));
634

    
635
      btnTagsRemove.setActionCommand("_Remove");
636
      btnTagsRemove.setName("btnTagsRemove");
637
      btnTagsRemove.setText("_Remove");
638
      jpanel1.add(btnTagsRemove,cc.xy(1,5));
639

    
640
      addFillComponents(jpanel1,new int[0],new int[]{ 2,4 });
641
      return jpanel1;
642
   }
643

    
644
   public JPanel createPanel15()
645
   {
646
      JPanel jpanel1 = new JPanel();
647
      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");
648
      CellConstraints cc = new CellConstraints();
649
      jpanel1.setLayout(formlayout1);
650

    
651
      chkIsForeingKey.setActionCommand("_is_foreing_key");
652
      chkIsForeingKey.setName("chkIsForeingKey");
653
      chkIsForeingKey.setText("_is_foreing_key");
654
      jpanel1.add(chkIsForeingKey,cc.xywh(2,2,3,1));
655

    
656
      lblForeingKeyTableName.setName("lblForeingKeyTableName");
657
      lblForeingKeyTableName.setText("_Table");
658
      jpanel1.add(lblForeingKeyTableName,cc.xy(2,6));
659

    
660
      lblForeingKeyCodeName.setName("lblForeingKeyCodeName");
661
      lblForeingKeyCodeName.setText("_Code");
662
      jpanel1.add(lblForeingKeyCodeName,cc.xy(2,8));
663

    
664
      lblForeingKeyLabelFormula.setName("lblForeingKeyLabelFormula");
665
      lblForeingKeyLabelFormula.setText("_Label_formula");
666
      jpanel1.add(lblForeingKeyLabelFormula,cc.xy(2,10));
667

    
668
      cboForeingKeyTableName.setEditable(true);
669
      cboForeingKeyTableName.setName("cboForeingKeyTableName");
670
      cboForeingKeyTableName.setRequestFocusEnabled(false);
671
      jpanel1.add(cboForeingKeyTableName,cc.xywh(4,6,3,1));
672

    
673
      cboForeingKeyCodeName.setEditable(true);
674
      cboForeingKeyCodeName.setName("cboForeingKeyCodeName");
675
      cboForeingKeyCodeName.setRequestFocusEnabled(false);
676
      jpanel1.add(cboForeingKeyCodeName,cc.xywh(4,8,3,1));
677

    
678
      txtForeingKeyFormula.setName("txtForeingKeyFormula");
679
      jpanel1.add(txtForeingKeyFormula,cc.xy(4,10));
680

    
681
      btnForeingKeyFormula.setActionCommand("...");
682
      btnForeingKeyFormula.setName("btnForeingKeyFormula");
683
      btnForeingKeyFormula.setText("...");
684
      jpanel1.add(btnForeingKeyFormula,cc.xy(6,10));
685

    
686
      lblIsSelectable.setName("lblIsSelectable");
687
      lblIsSelectable.setText("_is_seletable");
688
      jpanel1.add(lblIsSelectable,cc.xy(2,4));
689

    
690
      chkIsSelectable.setName("chkIsSelectable");
691
      jpanel1.add(chkIsSelectable,cc.xy(4,4));
692

    
693
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11 });
694
      return jpanel1;
695
   }
696

    
697
   public JPanel createPanel16()
698
   {
699
      JPanel jpanel1 = new JPanel();
700
      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");
701
      CellConstraints cc = new CellConstraints();
702
      jpanel1.setLayout(formlayout1);
703

    
704
      lblIsPrimaryKey.setName("lblIsPrimaryKey");
705
      lblIsPrimaryKey.setText("_Primary_key");
706
      jpanel1.add(lblIsPrimaryKey,cc.xy(1,1));
707

    
708
      chkIsPrimaryKey.setName("chkIsPrimaryKey");
709
      jpanel1.add(chkIsPrimaryKey,cc.xy(3,1));
710

    
711
      lblIsAutomatic.setName("lblIsAutomatic");
712
      lblIsAutomatic.setText("_Value_automatic");
713
      jpanel1.add(lblIsAutomatic,cc.xy(5,1));
714

    
715
      chkIsAutomatic.setName("chkIsAutomatic");
716
      jpanel1.add(chkIsAutomatic,cc.xy(7,1));
717

    
718
      lblAllowNulls.setName("lblAllowNulls");
719
      lblAllowNulls.setText("_Allow_nulls");
720
      jpanel1.add(lblAllowNulls,cc.xy(9,1));
721

    
722
      chkAllowNulls.setName("chkAllowNulls");
723
      jpanel1.add(chkAllowNulls,cc.xy(11,1));
724

    
725
      addFillComponents(jpanel1,new int[]{ 2,4,6,8,10,12 },new int[0]);
726
      return jpanel1;
727
   }
728

    
729
   /**
730
    * Initializer
731
    */
732
   protected void initializePanel()
733
   {
734
      setLayout(new BorderLayout());
735
      add(createPanel(), BorderLayout.CENTER);
736
   }
737

    
738

    
739
}