Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.plugin / org.gvsig.app / org.gvsig.app.mainplugin / src / main / java / org / gvsig / app / extension / updatetable / UpdateTablePanelView.java @ 47784

History | View | Annotate | Download (20.8 KB)

1 46475 jjdelcerro
package org.gvsig.app.extension.updatetable;
2 46448 jjdelcerro
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.ButtonGroup;
12
import javax.swing.ImageIcon;
13
import javax.swing.JButton;
14
import javax.swing.JCheckBox;
15
import javax.swing.JFrame;
16
import javax.swing.JLabel;
17
import javax.swing.JPanel;
18
import javax.swing.JProgressBar;
19
import javax.swing.JRadioButton;
20
import javax.swing.JScrollPane;
21
import javax.swing.JTabbedPane;
22
import javax.swing.JTable;
23
import javax.swing.JTextField;
24
import javax.swing.JTree;
25
import javax.swing.border.EmptyBorder;
26
27
28 46475 jjdelcerro
public class UpdateTablePanelView extends JPanel
29 46448 jjdelcerro
{
30
   JTabbedPane jtabbedpane1 = new JTabbedPane();
31
   JLabel lblSourceTable = new JLabel();
32
   JTree treeTable = new JTree();
33
   JLabel lblRecordsLabel1 = new JLabel();
34
   JLabel lblRecordsLabel11 = new JLabel();
35
   JTextField txtRecordFilter = new JTextField();
36
   JButton btnRecordFilter = new JButton();
37
   JButton btnRecordFilterBookmarks = new JButton();
38
   JButton btnRecordFilterHistory = new JButton();
39
   JRadioButton rdoRecordsSelecteds = new JRadioButton();
40
   ButtonGroup buttongroup2 = new ButtonGroup();
41
   JRadioButton rdoRecordsEditeds = new JRadioButton();
42
   JRadioButton rdoRecordsAll = new JRadioButton();
43
   JButton btnRecordsUpdatePreview = new JButton();
44
   JTable tblRecordsPreview = new JTable();
45
   JButton btnRecordsConfigurePreviewColumns = new JButton();
46
   JLabel lblFieldsFieldsToCopy = new JLabel();
47
   JTable tableFields = new JTable();
48
   JButton btnFieldsSelectAll = new JButton();
49
   JButton btnFieldsDeselectAll = new JButton();
50 46475 jjdelcerro
   JRadioButton rdoOptionsFulledit = new JRadioButton();
51 46448 jjdelcerro
   ButtonGroup buttongroup1 = new ButtonGroup();
52 46475 jjdelcerro
   JRadioButton rdoOptionsPassthrought = new JRadioButton();
53
   JCheckBox chkOptionsFinishAndRestarEditEach = new JCheckBox();
54
   JTextField txtOptionsFinishAndRestarEditEach = new JTextField();
55
   JCheckBox chkOptionsBeginEditIfNeed = new JCheckBox();
56
   JCheckBox chkOptionsFinishEditAfterTerminate = new JCheckBox();
57
   JCheckBox chkOptionsNotifyUserIfNeedBeginEditing = new JCheckBox();
58 46448 jjdelcerro
   JProgressBar pbStatus = new JProgressBar();
59
   JLabel lblStatusLabel = new JLabel();
60
   JLabel lblStatusMessage = new JLabel();
61 46475 jjdelcerro
   JButton btnCancelStatus = new JButton();
62
   JButton btnHistory = new JButton();
63
   JButton btnBookmarks = new JButton();
64
   JButton btnConfigurableActions = new JButton();
65 46448 jjdelcerro
66
   /**
67
    * Default constructor
68
    */
69 46475 jjdelcerro
   public UpdateTablePanelView()
70 46448 jjdelcerro
   {
71
      initializePanel();
72
   }
73
74
   /**
75
    * Adds fill components to empty cells in the first row and first column of the grid.
76
    * This ensures that the grid spacing will be the same as shown in the designer.
77
    * @param cols an array of column indices in the first row where fill components should be added.
78
    * @param rows an array of row indices in the first column where fill components should be added.
79
    */
80
   void addFillComponents( Container panel, int[] cols, int[] rows )
81
   {
82
      Dimension filler = new Dimension(10,10);
83
84
      boolean filled_cell_11 = false;
85
      CellConstraints cc = new CellConstraints();
86
      if ( cols.length > 0 && rows.length > 0 )
87
      {
88
         if ( cols[0] == 1 && rows[0] == 1 )
89
         {
90
            /** add a rigid area  */
91
            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
92
            filled_cell_11 = true;
93
         }
94
      }
95
96
      for( int index = 0; index < cols.length; index++ )
97
      {
98
         if ( cols[index] == 1 && filled_cell_11 )
99
         {
100
            continue;
101
         }
102
         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
103
      }
104
105
      for( int index = 0; index < rows.length; index++ )
106
      {
107
         if ( rows[index] == 1 && filled_cell_11 )
108
         {
109
            continue;
110
         }
111
         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
112
      }
113
114
   }
115
116
   /**
117
    * Helper method to load an image file from the CLASSPATH
118
    * @param imageName the package and name of the file to load relative to the CLASSPATH
119
    * @return an ImageIcon instance with the specified image file
120
    * @throws IllegalArgumentException if the image resource cannot be loaded.
121
    */
122
   public ImageIcon loadImage( String imageName )
123
   {
124
      try
125
      {
126
         ClassLoader classloader = getClass().getClassLoader();
127
         java.net.URL url = classloader.getResource( imageName );
128
         if ( url != null )
129
         {
130
            ImageIcon icon = new ImageIcon( url );
131
            return icon;
132
         }
133
      }
134
      catch( Exception e )
135
      {
136
         e.printStackTrace();
137
      }
138
      throw new IllegalArgumentException( "Unable to load image: " + imageName );
139
   }
140
141
   /**
142
    * Method for recalculating the component orientation for
143
    * right-to-left Locales.
144
    * @param orientation the component orientation to be applied
145
    */
146
   public void applyComponentOrientation( ComponentOrientation orientation )
147
   {
148
      // Not yet implemented...
149
      // I18NUtils.applyComponentOrientation(this, orientation);
150
      super.applyComponentOrientation(orientation);
151
   }
152
153
   public JPanel createPanel()
154
   {
155
      JPanel jpanel1 = new JPanel();
156 46475 jjdelcerro
      FormLayout formlayout1 = new FormLayout("FILL:8DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:8DLU:NONE","CENTER:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),CENTER:DEFAULT:NONE,CENTER:4DLU:NONE");
157 46448 jjdelcerro
      CellConstraints cc = new CellConstraints();
158
      jpanel1.setLayout(formlayout1);
159
160
      jtabbedpane1.addTab("Tabla",null,createPanel1());
161
      jtabbedpane1.addTab("Registros",null,createPanel2());
162
      jtabbedpane1.addTab("Campos",null,createPanel4());
163
      jtabbedpane1.addTab("Opciones",null,createPanel6());
164
      jpanel1.add(jtabbedpane1,cc.xy(2,2));
165
166
      jpanel1.add(createPanel9(),cc.xy(2,3));
167 46475 jjdelcerro
      jpanel1.add(createPanel10(),new CellConstraints(2,1,1,1,CellConstraints.RIGHT,CellConstraints.DEFAULT));
168 46448 jjdelcerro
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4 });
169
      return jpanel1;
170
   }
171
172
   public JPanel createPanel1()
173
   {
174
      JPanel jpanel1 = new JPanel();
175
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE");
176
      CellConstraints cc = new CellConstraints();
177
      jpanel1.setLayout(formlayout1);
178
179
      lblSourceTable.setName("lblSourceTable");
180
      lblSourceTable.setText("Tabla");
181
      jpanel1.add(lblSourceTable,cc.xy(2,2));
182
183
      treeTable.setName("treeTable");
184
      treeTable.setRootVisible(false);
185
      treeTable.setShowsRootHandles(true);
186
      JScrollPane jscrollpane1 = new JScrollPane();
187
      jscrollpane1.setViewportView(treeTable);
188
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
189
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
190
      jpanel1.add(jscrollpane1,cc.xy(2,4));
191
192
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5 });
193
      return jpanel1;
194
   }
195
196
   public JPanel createPanel2()
197
   {
198
      JPanel jpanel1 = new JPanel();
199
      FormLayout formlayout1 = new FormLayout("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,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
200
      CellConstraints cc = new CellConstraints();
201
      jpanel1.setLayout(formlayout1);
202
203
      lblRecordsLabel1.setName("lblRecordsLabel1");
204
      lblRecordsLabel1.setText("Se procesaran los registros");
205
      jpanel1.add(lblRecordsLabel1,cc.xy(2,2));
206
207
      lblRecordsLabel11.setName("lblRecordsLabel1");
208
      lblRecordsLabel11.setText("Solo se actualizaran los que cumplan el criterio:");
209
      jpanel1.add(lblRecordsLabel11,cc.xy(2,10));
210
211
      jpanel1.add(createPanel3(),cc.xy(2,12));
212
      rdoRecordsSelecteds.setActionCommand("Seleccionados");
213
      rdoRecordsSelecteds.setName("rdoRecordsSelecteds");
214
      rdoRecordsSelecteds.setText("Seleccionados");
215
      buttongroup2.add(rdoRecordsSelecteds);
216
      jpanel1.add(rdoRecordsSelecteds,cc.xy(2,4));
217
218
      rdoRecordsEditeds.setActionCommand("Editados");
219
      rdoRecordsEditeds.setName("rdoRecordsEditeds");
220
      rdoRecordsEditeds.setText("Editados");
221
      buttongroup2.add(rdoRecordsEditeds);
222
      jpanel1.add(rdoRecordsEditeds,cc.xy(2,6));
223
224
      rdoRecordsAll.setActionCommand("Todos");
225
      rdoRecordsAll.setName("rdoRecordsAll");
226
      rdoRecordsAll.setText("Todos");
227
      buttongroup2.add(rdoRecordsAll);
228
      jpanel1.add(rdoRecordsAll,cc.xy(2,8));
229
230
      btnRecordsUpdatePreview.setActionCommand("Actualizar previsualizacion");
231
      btnRecordsUpdatePreview.setName("btnRecordsUpdatePreview");
232
      btnRecordsUpdatePreview.setText("Actualizar previsualizacion");
233
      jpanel1.add(btnRecordsUpdatePreview,new CellConstraints(2,14,1,1,CellConstraints.RIGHT,CellConstraints.DEFAULT));
234
235
      tblRecordsPreview.setName("tblRecordsPreview");
236
      JScrollPane jscrollpane1 = new JScrollPane();
237
      jscrollpane1.setViewportView(tblRecordsPreview);
238
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
239
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
240
      jpanel1.add(jscrollpane1,cc.xy(2,16));
241
242
      btnRecordsConfigurePreviewColumns.setActionCommand("Configurar columnas");
243
      btnRecordsConfigurePreviewColumns.setName("btnRecordsConfigurePreviewColumns");
244
      btnRecordsConfigurePreviewColumns.setText("Configurar columnas");
245
      jpanel1.add(btnRecordsConfigurePreviewColumns,new CellConstraints(2,18,1,1,CellConstraints.RIGHT,CellConstraints.DEFAULT));
246
247
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19 });
248
      return jpanel1;
249
   }
250
251
   public JPanel createPanel3()
252
   {
253
      JPanel jpanel1 = new JPanel();
254
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
255
      CellConstraints cc = new CellConstraints();
256
      jpanel1.setLayout(formlayout1);
257
258
      txtRecordFilter.setName("txtRecordFilter");
259
      jpanel1.add(txtRecordFilter,cc.xy(1,1));
260
261
      btnRecordFilter.setActionCommand("...");
262
      btnRecordFilter.setName("btnRecordFilter");
263
      btnRecordFilter.setOpaque(false);
264
      btnRecordFilter.setText("...");
265
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
266
      btnRecordFilter.setBorder(emptyborder1);
267
      jpanel1.add(btnRecordFilter,cc.xy(3,1));
268
269
      btnRecordFilterBookmarks.setActionCommand("...");
270
      btnRecordFilterBookmarks.setName("btnRecordFilterBookmarks");
271
      btnRecordFilterBookmarks.setOpaque(false);
272
      btnRecordFilterBookmarks.setText("...");
273
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
274
      btnRecordFilterBookmarks.setBorder(emptyborder2);
275
      jpanel1.add(btnRecordFilterBookmarks,cc.xy(5,1));
276
277
      btnRecordFilterHistory.setActionCommand("...");
278
      btnRecordFilterHistory.setName("btnRecordFilterHistory");
279
      btnRecordFilterHistory.setOpaque(false);
280
      btnRecordFilterHistory.setText("...");
281
      EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2);
282
      btnRecordFilterHistory.setBorder(emptyborder3);
283
      jpanel1.add(btnRecordFilterHistory,cc.xy(7,1));
284
285
      addFillComponents(jpanel1,new int[]{ 2,4,6 },new int[0]);
286
      return jpanel1;
287
   }
288
289
   public JPanel createPanel4()
290
   {
291
      JPanel jpanel1 = new JPanel();
292
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
293
      CellConstraints cc = new CellConstraints();
294
      jpanel1.setLayout(formlayout1);
295
296
      lblFieldsFieldsToCopy.setName("lblFieldsFieldsToCopy");
297
      lblFieldsFieldsToCopy.setText("Campos a copiar");
298
      jpanel1.add(lblFieldsFieldsToCopy,cc.xy(2,2));
299
300
      tableFields.setName("tableFields");
301
      JScrollPane jscrollpane1 = new JScrollPane();
302
      jscrollpane1.setViewportView(tableFields);
303
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
304
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
305
      jpanel1.add(jscrollpane1,cc.xy(2,4));
306
307
      jpanel1.add(createPanel5(),cc.xy(2,5));
308
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5,6 });
309
      return jpanel1;
310
   }
311
312
   public JPanel createPanel5()
313
   {
314
      JPanel jpanel1 = new JPanel();
315
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
316
      CellConstraints cc = new CellConstraints();
317
      jpanel1.setLayout(formlayout1);
318
319
      btnFieldsSelectAll.setIcon(loadImage("addons/QuickDrawing/common-check-on.png"));
320
      btnFieldsSelectAll.setName("btnFieldsSelectAll");
321
      btnFieldsSelectAll.setOpaque(false);
322
      btnFieldsSelectAll.setToolTipText("_Select_all");
323
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
324
      btnFieldsSelectAll.setBorder(emptyborder1);
325
      jpanel1.add(btnFieldsSelectAll,cc.xy(1,1));
326
327
      btnFieldsDeselectAll.setActionCommand("...");
328
      btnFieldsDeselectAll.setIcon(loadImage("addons/QuickDrawing/common-check-off.png"));
329
      btnFieldsDeselectAll.setName("btnFieldsDeselectAll");
330
      btnFieldsDeselectAll.setOpaque(false);
331
      btnFieldsDeselectAll.setToolTipText("_Deselect_all");
332
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
333
      btnFieldsDeselectAll.setBorder(emptyborder2);
334
      jpanel1.add(btnFieldsDeselectAll,cc.xy(3,1));
335
336
      addFillComponents(jpanel1,new int[]{ 2 },new int[0]);
337
      return jpanel1;
338
   }
339
340
   public JPanel createPanel6()
341
   {
342
      JPanel jpanel1 = new JPanel();
343
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
344
      CellConstraints cc = new CellConstraints();
345
      jpanel1.setLayout(formlayout1);
346
347
      JLabel jlabel1 = new JLabel();
348
      jlabel1.setText("Modo de edicion");
349
      jpanel1.add(jlabel1,cc.xy(2,2));
350
351 46475 jjdelcerro
      rdoOptionsFulledit.setActionCommand("Modo standard");
352
      rdoOptionsFulledit.setName("rdoOptionsFulledit");
353
      rdoOptionsFulledit.setSelected(true);
354
      rdoOptionsFulledit.setText("Modo standard");
355
      buttongroup1.add(rdoOptionsFulledit);
356
      jpanel1.add(rdoOptionsFulledit,cc.xy(2,4));
357 46448 jjdelcerro
358 46475 jjdelcerro
      rdoOptionsPassthrought.setActionCommand("Modo pass-throught");
359
      rdoOptionsPassthrought.setName("rdoOptionsPassthrought");
360
      rdoOptionsPassthrought.setText("Modo pass-throught");
361
      buttongroup1.add(rdoOptionsPassthrought);
362
      jpanel1.add(rdoOptionsPassthrought,cc.xy(2,8));
363 46448 jjdelcerro
364
      jpanel1.add(createPanel7(),cc.xy(2,6));
365
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9 });
366
      return jpanel1;
367
   }
368
369
   public JPanel createPanel7()
370
   {
371
      JPanel jpanel1 = new JPanel();
372
      FormLayout formlayout1 = new FormLayout("FILL:12DLU:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");
373
      CellConstraints cc = new CellConstraints();
374
      jpanel1.setLayout(formlayout1);
375
376
      jpanel1.add(createPanel8(),cc.xy(2,1));
377 46475 jjdelcerro
      chkOptionsBeginEditIfNeed.setActionCommand("Iniciar edicion si la tabla no esta en edicion");
378
      chkOptionsBeginEditIfNeed.setName("chkOptionsBeginEditIfNeed");
379
      chkOptionsBeginEditIfNeed.setSelected(true);
380
      chkOptionsBeginEditIfNeed.setText("Iniciar edicion si la tabla no esta en edicion");
381
      jpanel1.add(chkOptionsBeginEditIfNeed,cc.xy(2,3));
382 46448 jjdelcerro
383 46475 jjdelcerro
      chkOptionsFinishEditAfterTerminate.setActionCommand("Terminar edicion al finalizar");
384
      chkOptionsFinishEditAfterTerminate.setName("chkOptionsFinishEditAfterTerminate");
385
      chkOptionsFinishEditAfterTerminate.setSelected(true);
386
      chkOptionsFinishEditAfterTerminate.setText("Terminar edicion al finalizar");
387
      jpanel1.add(chkOptionsFinishEditAfterTerminate,cc.xy(2,5));
388 46448 jjdelcerro
389 46475 jjdelcerro
      chkOptionsNotifyUserIfNeedBeginEditing.setActionCommand("Avisar al usuario si la tabla ya esta en edicion.");
390
      chkOptionsNotifyUserIfNeedBeginEditing.setName("chkOptionsNotifyUserIfNeedBeginEditing");
391
      chkOptionsNotifyUserIfNeedBeginEditing.setSelected(true);
392
      chkOptionsNotifyUserIfNeedBeginEditing.setText("Avisar al usuario si la tabla ya esta en edicion.");
393
      jpanel1.add(chkOptionsNotifyUserIfNeedBeginEditing,cc.xy(2,7));
394 46448 jjdelcerro
395
      addFillComponents(jpanel1,new int[]{ 1,2 },new int[]{ 1,2,3,4,5,6,7 });
396
      return jpanel1;
397
   }
398
399
   public JPanel createPanel8()
400
   {
401
      JPanel jpanel1 = new JPanel();
402
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:MAX(50DLU;DEFAULT):NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
403
      CellConstraints cc = new CellConstraints();
404
      jpanel1.setLayout(formlayout1);
405
406 46475 jjdelcerro
      chkOptionsFinishAndRestarEditEach.setActionCommand("Reiniciar edicion cada");
407
      chkOptionsFinishAndRestarEditEach.setName("chkOptionsFinishAndRestarEditEach");
408
      chkOptionsFinishAndRestarEditEach.setSelected(true);
409
      chkOptionsFinishAndRestarEditEach.setText("Terminar edicion y reiniciarla cada");
410
      jpanel1.add(chkOptionsFinishAndRestarEditEach,cc.xy(1,1));
411 46448 jjdelcerro
412 46475 jjdelcerro
      txtOptionsFinishAndRestarEditEach.setName("txtOptionsFinishAndRestarEditEach");
413
      txtOptionsFinishAndRestarEditEach.setSelectionEnd(5);
414
      txtOptionsFinishAndRestarEditEach.setSelectionStart(5);
415
      txtOptionsFinishAndRestarEditEach.setText("10000");
416
      jpanel1.add(txtOptionsFinishAndRestarEditEach,cc.xy(3,1));
417 46448 jjdelcerro
418
      JLabel jlabel1 = new JLabel();
419
      jlabel1.setText("cambios");
420
      jpanel1.add(jlabel1,cc.xy(5,1));
421
422
      addFillComponents(jpanel1,new int[]{ 2,4 },new int[0]);
423
      return jpanel1;
424
   }
425
426
   public JPanel createPanel9()
427
   {
428
      JPanel jpanel1 = new JPanel();
429 46475 jjdelcerro
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:MAX(12DLU;DEFAULT):NONE,CENTER:MAX(12DLU;DEFAULT):NONE,CENTER:MAX(12DLU;DEFAULT):NONE");
430 46448 jjdelcerro
      CellConstraints cc = new CellConstraints();
431
      jpanel1.setLayout(formlayout1);
432
433
      pbStatus.setName("pbStatus");
434
      pbStatus.setValue(25);
435
      jpanel1.add(pbStatus,cc.xy(1,2));
436
437
      lblStatusLabel.setName("lblStatusLabel");
438
      lblStatusLabel.setText("Inicializando interface de usuario...");
439
      jpanel1.add(lblStatusLabel,cc.xy(1,1));
440
441
      lblStatusMessage.setName("lblStatusMessage");
442
      lblStatusMessage.setText("Inicializando interface de usuario...");
443
      jpanel1.add(lblStatusMessage,cc.xy(1,3));
444
445 46475 jjdelcerro
      btnCancelStatus.setActionCommand("...");
446
      btnCancelStatus.setName("btnCancelStatus");
447
      btnCancelStatus.setText("...");
448
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
449
      btnCancelStatus.setBorder(emptyborder1);
450
      jpanel1.add(btnCancelStatus,cc.xy(2,2));
451
452
      addFillComponents(jpanel1,new int[]{ 2 },new int[0]);
453 46448 jjdelcerro
      return jpanel1;
454
   }
455
456 46475 jjdelcerro
   public JPanel createPanel10()
457
   {
458
      JPanel jpanel1 = new JPanel();
459
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
460
      CellConstraints cc = new CellConstraints();
461
      jpanel1.setLayout(formlayout1);
462
463
      btnHistory.setActionCommand("...");
464
      btnHistory.setName("btnHistory");
465
      btnHistory.setOpaque(false);
466
      btnHistory.setText("...");
467
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
468
      btnHistory.setBorder(emptyborder1);
469
      jpanel1.add(btnHistory,cc.xy(1,1));
470
471
      btnBookmarks.setActionCommand("...");
472
      btnBookmarks.setName("btnBookmarks");
473
      btnBookmarks.setOpaque(false);
474
      btnBookmarks.setText("...");
475
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
476
      btnBookmarks.setBorder(emptyborder2);
477
      jpanel1.add(btnBookmarks,cc.xy(3,1));
478
479
      btnConfigurableActions.setActionCommand("...");
480
      btnConfigurableActions.setName("btnConfigurableActions");
481
      btnConfigurableActions.setOpaque(false);
482
      btnConfigurableActions.setText("...");
483
      EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2);
484
      btnConfigurableActions.setBorder(emptyborder3);
485
      jpanel1.add(btnConfigurableActions,cc.xy(5,1));
486
487
      addFillComponents(jpanel1,new int[]{ 2,4 },new int[0]);
488
      return jpanel1;
489
   }
490
491 46448 jjdelcerro
   /**
492
    * Initializer
493
    */
494
   protected void initializePanel()
495
   {
496
      setLayout(new BorderLayout());
497
      add(createPanel(), BorderLayout.CENTER);
498
   }
499
500
501
}