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

History | View | Annotate | Download (25.1 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
   JButton btnTagsAdd = new JButton();
90
   JButton btnTagsUpdate = new JButton();
91
   JButton btnTagsRemove = new JButton();
92
   JLabel lblTagsDescription = new JLabel();
93
   JLabel lblIsPrimaryKey = new JLabel();
94
   JCheckBox chkIsPrimaryKey = new JCheckBox();
95
   JLabel lblIsAutomatic = new JLabel();
96
   JCheckBox chkIsAutomatic = new JCheckBox();
97
   JLabel lblAllowNulls = new JLabel();
98
   JCheckBox chkAllowNulls = new JCheckBox();
99

    
100
   /**
101
    * Default constructor
102
    */
103
   public FeatureTypeAttributePanelView()
104
   {
105
      initializePanel();
106
   }
107

    
108
   /**
109
    * Adds fill components to empty cells in the first row and first column of the grid.
110
    * This ensures that the grid spacing will be the same as shown in the designer.
111
    * @param cols an array of column indices in the first row where fill components should be added.
112
    * @param rows an array of row indices in the first column where fill components should be added.
113
    */
114
   void addFillComponents( Container panel, int[] cols, int[] rows )
115
   {
116
      Dimension filler = new Dimension(10,10);
117

    
118
      boolean filled_cell_11 = false;
119
      CellConstraints cc = new CellConstraints();
120
      if ( cols.length > 0 && rows.length > 0 )
121
      {
122
         if ( cols[0] == 1 && rows[0] == 1 )
123
         {
124
            /** add a rigid area  */
125
            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
126
            filled_cell_11 = true;
127
         }
128
      }
129

    
130
      for( int index = 0; index < cols.length; index++ )
131
      {
132
         if ( cols[index] == 1 && filled_cell_11 )
133
         {
134
            continue;
135
         }
136
         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
137
      }
138

    
139
      for( int index = 0; index < rows.length; index++ )
140
      {
141
         if ( rows[index] == 1 && filled_cell_11 )
142
         {
143
            continue;
144
         }
145
         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
146
      }
147

    
148
   }
149

    
150
   /**
151
    * Helper method to load an image file from the CLASSPATH
152
    * @param imageName the package and name of the file to load relative to the CLASSPATH
153
    * @return an ImageIcon instance with the specified image file
154
    * @throws IllegalArgumentException if the image resource cannot be loaded.
155
    */
156
   public ImageIcon loadImage( String imageName )
157
   {
158
      try
159
      {
160
         ClassLoader classloader = getClass().getClassLoader();
161
         java.net.URL url = classloader.getResource( imageName );
162
         if ( url != null )
163
         {
164
            ImageIcon icon = new ImageIcon( url );
165
            return icon;
166
         }
167
      }
168
      catch( Exception e )
169
      {
170
         e.printStackTrace();
171
      }
172
      throw new IllegalArgumentException( "Unable to load image: " + imageName );
173
   }
174

    
175
   /**
176
    * Method for recalculating the component orientation for 
177
    * right-to-left Locales.
178
    * @param orientation the component orientation to be applied
179
    */
180
   public void applyComponentOrientation( ComponentOrientation orientation )
181
   {
182
      // Not yet implemented...
183
      // I18NUtils.applyComponentOrientation(this, orientation);
184
      super.applyComponentOrientation(orientation);
185
   }
186

    
187
   public JPanel createPanel()
188
   {
189
      JPanel jpanel1 = new JPanel();
190
      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");
191
      CellConstraints cc = new CellConstraints();
192
      jpanel1.setLayout(formlayout1);
193

    
194
      lblFieldName.setName("lblFieldName");
195
      lblFieldName.setText("_Field_name");
196
      jpanel1.add(lblFieldName,cc.xy(2,2));
197

    
198
      txtFieldName.setName("txtFieldName");
199
      jpanel1.add(txtFieldName,cc.xy(4,2));
200

    
201
      lblFieldType.setName("lblFieldType");
202
      lblFieldType.setText("_Field_type");
203
      jpanel1.add(lblFieldType,cc.xy(2,4));
204

    
205
      cboFieldType.setName("cboFieldType");
206
      jpanel1.add(cboFieldType,cc.xy(4,4));
207

    
208
      tabAditionalFields.setName("tabAditionalFields");
209
      tabAditionalFields.addTab("_Basic_fields",null,createPanel1());
210
      tabAditionalFields.addTab("_Geometry",null,createPanel3());
211
      tabAditionalFields.addTab("_Time",null,createPanel5());
212
      tabAditionalFields.addTab("_Visualization",null,createPanel7());
213
      jpanel1.add(tabAditionalFields,cc.xywh(2,8,3,1));
214

    
215
      jpanel1.add(createPanel15(),cc.xy(4,6));
216
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9 });
217
      return jpanel1;
218
   }
219

    
220
   public JPanel createPanel1()
221
   {
222
      JPanel jpanel1 = new JPanel();
223
      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");
224
      CellConstraints cc = new CellConstraints();
225
      jpanel1.setLayout(formlayout1);
226

    
227
      lblSize.setName("lblSize");
228
      lblSize.setText("_Size");
229
      jpanel1.add(lblSize,cc.xy(2,2));
230

    
231
      txtSize.setName("txtSize");
232
      jpanel1.add(txtSize,cc.xy(4,2));
233

    
234
      lblPrecision.setName("lblPrecision");
235
      lblPrecision.setText("_Precision");
236
      jpanel1.add(lblPrecision,cc.xy(2,4));
237

    
238
      lblDefaultValue.setName("lblDefaultValue");
239
      lblDefaultValue.setText("_Default_value");
240
      jpanel1.add(lblDefaultValue,cc.xy(2,6));
241

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

    
245
      txtDefaultValue.setName("txtDefaultValue");
246
      jpanel1.add(txtDefaultValue,cc.xy(4,6));
247

    
248
      lblDataProfile.setName("lblDataProfile");
249
      lblDataProfile.setText("_Data_profile");
250
      jpanel1.add(lblDataProfile,cc.xy(2,8));
251

    
252
      cboDataProfile.setName("cboDataProfile");
253
      jpanel1.add(cboDataProfile,cc.xy(4,8));
254

    
255
      chkVirtualField.setActionCommand("Campo virtual");
256
      chkVirtualField.setName("chkVirtualField");
257
      chkVirtualField.setText("_Virtual_field");
258
      jpanel1.add(chkVirtualField,cc.xy(2,10));
259

    
260
      jpanel1.add(createPanel2(),cc.xy(4,10));
261
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10 });
262
      return jpanel1;
263
   }
264

    
265
   public JPanel createPanel2()
266
   {
267
      JPanel jpanel1 = new JPanel();
268
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
269
      CellConstraints cc = new CellConstraints();
270
      jpanel1.setLayout(formlayout1);
271

    
272
      btnVirtualField.setActionCommand("...");
273
      btnVirtualField.setName("btnVirtualField");
274
      btnVirtualField.setText("...");
275
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
276
      btnVirtualField.setBorder(emptyborder1);
277
      jpanel1.add(btnVirtualField,cc.xy(3,1));
278

    
279
      txtVirtualField.setName("txtVirtualField");
280
      jpanel1.add(txtVirtualField,cc.xy(1,1));
281

    
282
      addFillComponents(jpanel1,new int[]{ 2 },new int[0]);
283
      return jpanel1;
284
   }
285

    
286
   public JPanel createPanel3()
287
   {
288
      JPanel jpanel1 = new JPanel();
289
      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");
290
      CellConstraints cc = new CellConstraints();
291
      jpanel1.setLayout(formlayout1);
292

    
293
      lblGeometryType.setName("lblGeometryType");
294
      lblGeometryType.setText("_Geometry_type");
295
      jpanel1.add(lblGeometryType,cc.xy(2,2));
296

    
297
      lblGeometrySubtype.setName("lblGeometrySubtype");
298
      lblGeometrySubtype.setText("_Geometry_subtype");
299
      jpanel1.add(lblGeometrySubtype,cc.xy(2,4));
300

    
301
      lblCRS.setName("lblCRS");
302
      lblCRS.setText("_CRS");
303
      jpanel1.add(lblCRS,cc.xy(2,6));
304

    
305
      cboGeometryType.setName("cboGeometryType");
306
      jpanel1.add(cboGeometryType,cc.xy(4,2));
307

    
308
      cboGeometrySubtype.setName("cboGeometrySubtype");
309
      jpanel1.add(cboGeometrySubtype,cc.xy(4,4));
310

    
311
      jpanel1.add(createPanel4(),cc.xy(4,6));
312
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7 });
313
      return jpanel1;
314
   }
315

    
316
   public JPanel createPanel4()
317
   {
318
      JPanel jpanel1 = new JPanel();
319
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
320
      CellConstraints cc = new CellConstraints();
321
      jpanel1.setLayout(formlayout1);
322

    
323
      btnCRS.setActionCommand("...");
324
      btnCRS.setName("btnCRS");
325
      btnCRS.setText("...");
326
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
327
      btnCRS.setBorder(emptyborder1);
328
      jpanel1.add(btnCRS,cc.xy(3,1));
329

    
330
      txtCRS.setName("txtCRS");
331
      jpanel1.add(txtCRS,cc.xy(1,1));
332

    
333
      addFillComponents(jpanel1,new int[]{ 2 },new int[0]);
334
      return jpanel1;
335
   }
336

    
337
   public JPanel createPanel5()
338
   {
339
      JPanel jpanel1 = new JPanel();
340
      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");
341
      CellConstraints cc = new CellConstraints();
342
      jpanel1.setLayout(formlayout1);
343

    
344
      lblDateFormat.setName("lblDateFormat");
345
      lblDateFormat.setText("_Date_format");
346
      jpanel1.add(lblDateFormat,cc.xy(2,2));
347

    
348
      cboDateFormat.setEditable(true);
349
      cboDateFormat.setName("cboDateFormat");
350
      cboDateFormat.setRequestFocusEnabled(false);
351
      jpanel1.add(cboDateFormat,cc.xy(4,2));
352

    
353
      lblInterval.setName("lblInterval");
354
      lblInterval.setText("_Interval");
355
      jpanel1.add(lblInterval,new CellConstraints(2,5,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
356

    
357
      jpanel1.add(createPanel6(),cc.xy(4,5));
358
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6 });
359
      return jpanel1;
360
   }
361

    
362
   public JPanel createPanel6()
363
   {
364
      JPanel jpanel1 = new JPanel();
365
      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");
366
      CellConstraints cc = new CellConstraints();
367
      jpanel1.setLayout(formlayout1);
368

    
369
      lblIntervalStart.setName("lblIntervalStart");
370
      lblIntervalStart.setText("_Start");
371
      jpanel1.add(lblIntervalStart,cc.xy(1,1));
372

    
373
      lblIntervalEnd.setName("lblIntervalEnd");
374
      lblIntervalEnd.setText("_End");
375
      jpanel1.add(lblIntervalEnd,cc.xy(1,3));
376

    
377
      txtIntervalStart.setName("txtIntervalStart");
378
      jpanel1.add(txtIntervalStart,cc.xy(3,1));
379

    
380
      btnIntervalStart.setActionCommand("...");
381
      btnIntervalStart.setName("btnIntervalStart");
382
      btnIntervalStart.setText("...");
383
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
384
      btnIntervalStart.setBorder(emptyborder1);
385
      jpanel1.add(btnIntervalStart,cc.xy(5,1));
386

    
387
      btnIntervalEnd.setActionCommand("...");
388
      btnIntervalEnd.setName("btnIntervalEnd");
389
      btnIntervalEnd.setText("...");
390
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
391
      btnIntervalEnd.setBorder(emptyborder2);
392
      jpanel1.add(btnIntervalEnd,cc.xy(5,3));
393

    
394
      txtIntervalEnd.setName("txtIntervalEnd");
395
      jpanel1.add(txtIntervalEnd,cc.xy(3,3));
396

    
397
      addFillComponents(jpanel1,new int[]{ 2,4 },new int[]{ 2 });
398
      return jpanel1;
399
   }
400

    
401
   public JPanel createPanel7()
402
   {
403
      JPanel jpanel1 = new JPanel();
404
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0)");
405
      CellConstraints cc = new CellConstraints();
406
      jpanel1.setLayout(formlayout1);
407

    
408
      tabLayout.setName("tabLayout");
409
      tabLayout.setTabPlacement(JTabbedPane.LEFT);
410
      tabLayout.addTab("_Basic",null,createPanel8());
411
      tabLayout.addTab("_Values",null,createPanel9());
412
      tabLayout.addTab("_Tags",null,createPanel13());
413
      jpanel1.add(tabLayout,cc.xy(1,1));
414

    
415
      addFillComponents(jpanel1,new int[0],new int[0]);
416
      return jpanel1;
417
   }
418

    
419
   public JPanel createPanel8()
420
   {
421
      JPanel jpanel1 = new JPanel();
422
      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)");
423
      CellConstraints cc = new CellConstraints();
424
      jpanel1.setLayout(formlayout1);
425

    
426
      lblGroup.setName("lblGroup");
427
      lblGroup.setText("_Group");
428
      jpanel1.add(lblGroup,cc.xy(2,2));
429

    
430
      lblOrder.setName("lblOrder");
431
      lblOrder.setText("_Order");
432
      jpanel1.add(lblOrder,cc.xy(2,4));
433

    
434
      cboGroup.setEditable(true);
435
      cboGroup.setName("cboGroup");
436
      cboGroup.setRequestFocusEnabled(false);
437
      jpanel1.add(cboGroup,cc.xy(4,2));
438

    
439
      txtOrder.setName("txtOrder");
440
      jpanel1.add(txtOrder,cc.xy(4,4));
441

    
442
      lblHidden.setName("lblHidden");
443
      lblHidden.setText("_Hidden");
444
      jpanel1.add(lblHidden,cc.xy(2,6));
445

    
446
      chkHidden.setName("chkHidden");
447
      jpanel1.add(chkHidden,cc.xy(4,6));
448

    
449
      lblLabel.setName("lblLabel");
450
      lblLabel.setText("_Label");
451
      jpanel1.add(lblLabel,cc.xy(2,8));
452

    
453
      txtLabel.setName("txtLabel");
454
      jpanel1.add(txtLabel,cc.xy(4,8));
455

    
456
      lblDescription.setName("lblDescription");
457
      lblDescription.setText("_Description");
458
      lblDescription.setVerticalAlignment(JLabel.TOP);
459
      jpanel1.add(lblDescription,new CellConstraints(2,10,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
460

    
461
      txtDescription.setName("txtDescription");
462
      JScrollPane jscrollpane1 = new JScrollPane();
463
      jscrollpane1.setViewportView(txtDescription);
464
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
465
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
466
      jpanel1.add(jscrollpane1,cc.xy(4,10));
467

    
468
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10 });
469
      return jpanel1;
470
   }
471

    
472
   public JPanel createPanel9()
473
   {
474
      JPanel jpanel1 = new JPanel();
475
      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");
476
      CellConstraints cc = new CellConstraints();
477
      jpanel1.setLayout(formlayout1);
478

    
479
      lblMinValue.setName("lblMinValue");
480
      lblMinValue.setText("_Minimum_value");
481
      jpanel1.add(lblMinValue,cc.xy(2,2));
482

    
483
      txtMinValue.setName("txtMinValue");
484
      jpanel1.add(txtMinValue,cc.xy(4,2));
485

    
486
      lblMaxValue.setName("lblMaxValue");
487
      lblMaxValue.setText("_Maximum_value");
488
      jpanel1.add(lblMaxValue,cc.xy(2,4));
489

    
490
      txtMaxValue.setName("txtMaxValue");
491
      jpanel1.add(txtMaxValue,cc.xy(4,4));
492

    
493
      lblAvailableValues.setName("lblAvailableValues");
494
      lblAvailableValues.setText("_List_of_values");
495
      jpanel1.add(lblAvailableValues,cc.xywh(2,6,3,1));
496

    
497
      jpanel1.add(createPanel10(),cc.xywh(2,7,3,1));
498
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7 });
499
      return jpanel1;
500
   }
501

    
502
   public JPanel createPanel10()
503
   {
504
      JPanel jpanel1 = new JPanel();
505
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
506
      CellConstraints cc = new CellConstraints();
507
      jpanel1.setLayout(formlayout1);
508

    
509
      jpanel1.add(createPanel11(),cc.xy(3,1));
510
      jpanel1.add(createPanel12(),cc.xy(1,1));
511
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1 });
512
      return jpanel1;
513
   }
514

    
515
   public JPanel createPanel11()
516
   {
517
      JPanel jpanel1 = new JPanel();
518
      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)");
519
      CellConstraints cc = new CellConstraints();
520
      jpanel1.setLayout(formlayout1);
521

    
522
      btnAvailableValuesAdd.setActionCommand("_Add");
523
      btnAvailableValuesAdd.setName("btnAvailableValuesAdd");
524
      btnAvailableValuesAdd.setText("_Add");
525
      jpanel1.add(btnAvailableValuesAdd,cc.xy(1,1));
526

    
527
      btnAvailableValuesUpdate.setActionCommand("_Update");
528
      btnAvailableValuesUpdate.setName("btnAvailableValuesUpdate");
529
      btnAvailableValuesUpdate.setText("_Update");
530
      jpanel1.add(btnAvailableValuesUpdate,cc.xy(1,3));
531

    
532
      btnAvailableValuesRemove.setActionCommand("_Remove");
533
      btnAvailableValuesRemove.setName("btnAvailableValuesRemove");
534
      btnAvailableValuesRemove.setText("_Remove");
535
      jpanel1.add(btnAvailableValuesRemove,cc.xy(1,5));
536

    
537
      addFillComponents(jpanel1,new int[0],new int[]{ 2,4,6 });
538
      return jpanel1;
539
   }
540

    
541
   public JPanel createPanel12()
542
   {
543
      JPanel jpanel1 = new JPanel();
544
      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");
545
      CellConstraints cc = new CellConstraints();
546
      jpanel1.setLayout(formlayout1);
547

    
548
      lblAvailableValuesLabel.setName("lblAvailableValuesLabel");
549
      lblAvailableValuesLabel.setText("_Label");
550
      jpanel1.add(lblAvailableValuesLabel,cc.xy(1,3));
551

    
552
      lblAvailableValuesValue.setName("lblAvailableValuesValue");
553
      lblAvailableValuesValue.setText("_Value");
554
      jpanel1.add(lblAvailableValuesValue,cc.xy(1,5));
555

    
556
      cboAvailableValues.setName("cboAvailableValues");
557
      jpanel1.add(cboAvailableValues,cc.xywh(1,1,3,1));
558

    
559
      txtAvailableValuesLabel.setName("txtAvailableValuesLabel");
560
      jpanel1.add(txtAvailableValuesLabel,cc.xy(3,3));
561

    
562
      txtAvailableValuesValue.setName("txtAvailableValuesValue");
563
      jpanel1.add(txtAvailableValuesValue,cc.xy(3,5));
564

    
565
      addFillComponents(jpanel1,new int[]{ 2,3 },new int[]{ 2,4,6 });
566
      return jpanel1;
567
   }
568

    
569
   public JPanel createPanel13()
570
   {
571
      JPanel jpanel1 = new JPanel();
572
      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");
573
      CellConstraints cc = new CellConstraints();
574
      jpanel1.setLayout(formlayout1);
575

    
576
      lblTagsName.setName("lblTagsName");
577
      lblTagsName.setText("_Name");
578
      jpanel1.add(lblTagsName,cc.xy(2,3));
579

    
580
      lblTagsValue.setName("lblTagsValue");
581
      lblTagsValue.setText("_Value");
582
      jpanel1.add(lblTagsValue,cc.xy(2,5));
583

    
584
      cboTagsName.setEditable(true);
585
      cboTagsName.setName("cboTagsName");
586
      cboTagsName.setRequestFocusEnabled(false);
587
      jpanel1.add(cboTagsName,cc.xy(4,3));
588

    
589
      txtTagsValue.setName("txtTagsValue");
590
      jpanel1.add(txtTagsValue,cc.xy(4,5));
591

    
592
      tblTags.setName("tblTags");
593
      JScrollPane jscrollpane1 = new JScrollPane();
594
      jscrollpane1.setViewportView(tblTags);
595
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
596
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
597
      jpanel1.add(jscrollpane1,cc.xywh(2,1,3,1));
598

    
599
      jpanel1.add(createPanel14(),cc.xywh(6,1,1,5));
600
      lblTagsDescription.setName("lblTagsDescription");
601
      jpanel1.add(lblTagsDescription,cc.xy(4,6));
602

    
603
      addFillComponents(jpanel1,new int[]{ 1,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6 });
604
      return jpanel1;
605
   }
606

    
607
   public JPanel createPanel14()
608
   {
609
      JPanel jpanel1 = new JPanel();
610
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");
611
      CellConstraints cc = new CellConstraints();
612
      jpanel1.setLayout(formlayout1);
613

    
614
      btnTagsAdd.setActionCommand("_Add");
615
      btnTagsAdd.setName("btnTagsAdd");
616
      btnTagsAdd.setText("_Add");
617
      jpanel1.add(btnTagsAdd,cc.xy(1,1));
618

    
619
      btnTagsUpdate.setActionCommand("_Update");
620
      btnTagsUpdate.setName("btnTagsUpdate");
621
      btnTagsUpdate.setText("_Update");
622
      jpanel1.add(btnTagsUpdate,cc.xy(1,3));
623

    
624
      btnTagsRemove.setActionCommand("_Remove");
625
      btnTagsRemove.setName("btnTagsRemove");
626
      btnTagsRemove.setText("_Remove");
627
      jpanel1.add(btnTagsRemove,cc.xy(1,5));
628

    
629
      addFillComponents(jpanel1,new int[0],new int[]{ 2,4 });
630
      return jpanel1;
631
   }
632

    
633
   public JPanel createPanel15()
634
   {
635
      JPanel jpanel1 = new JPanel();
636
      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");
637
      CellConstraints cc = new CellConstraints();
638
      jpanel1.setLayout(formlayout1);
639

    
640
      lblIsPrimaryKey.setName("lblIsPrimaryKey");
641
      lblIsPrimaryKey.setText("_Primary_key");
642
      jpanel1.add(lblIsPrimaryKey,cc.xy(1,1));
643

    
644
      chkIsPrimaryKey.setName("chkIsPrimaryKey");
645
      jpanel1.add(chkIsPrimaryKey,cc.xy(3,1));
646

    
647
      lblIsAutomatic.setName("lblIsAutomatic");
648
      lblIsAutomatic.setText("_Value_automatic");
649
      jpanel1.add(lblIsAutomatic,cc.xy(5,1));
650

    
651
      chkIsAutomatic.setName("chkIsAutomatic");
652
      jpanel1.add(chkIsAutomatic,cc.xy(7,1));
653

    
654
      lblAllowNulls.setName("lblAllowNulls");
655
      lblAllowNulls.setText("_Allow_nulls");
656
      jpanel1.add(lblAllowNulls,cc.xy(9,1));
657

    
658
      chkAllowNulls.setName("chkAllowNulls");
659
      jpanel1.add(chkAllowNulls,cc.xy(11,1));
660

    
661
      addFillComponents(jpanel1,new int[]{ 2,4,6,8,10,12 },new int[0]);
662
      return jpanel1;
663
   }
664

    
665
   /**
666
    * Initializer
667
    */
668
   protected void initializePanel()
669
   {
670
      setLayout(new BorderLayout());
671
      add(createPanel(), BorderLayout.CENTER);
672
   }
673

    
674

    
675
}