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 / searchpanel / DefaultSearchPanelView.java @ 47426

History | View | Annotate | Download (18.4 KB)

1
package org.gvsig.fmap.dal.swing.impl.searchpanel;
2
import com.jeta.open.i18n.I18NUtils;
3
import com.jgoodies.forms.layout.CellConstraints;
4
import com.jgoodies.forms.layout.FormLayout;
5
import java.awt.BorderLayout;
6
import java.awt.ComponentOrientation;
7
import java.awt.Container;
8
import java.awt.Dimension;
9
import java.awt.event.WindowAdapter;
10
import java.awt.event.WindowEvent;
11
import javax.swing.Box;
12
import javax.swing.ImageIcon;
13
import javax.swing.JButton;
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.border.EmptyBorder;
23

    
24

    
25
public class DefaultSearchPanelView extends JPanel
26
{
27
   JTabbedPane tabSearchMode = new JTabbedPane();
28
   JComboBox cboValue1 = new JComboBox();
29
   JComboBox cboValue2 = new JComboBox();
30
   JComboBox cboValue3 = new JComboBox();
31
   JComboBox cboValue4 = new JComboBox();
32
   JLabel lblRelationalOperator2 = new JLabel();
33
   JLabel lblRelationalOperator3 = new JLabel();
34
   JLabel lblRelationalOperator4 = new JLabel();
35
   JLabel lblLogicalOperators1 = new JLabel();
36
   JLabel lblLogicalOperators2 = new JLabel();
37
   JLabel lblLogicalOperators3 = new JLabel();
38
   JLabel lblField1 = new JLabel();
39
   JLabel lblField2 = new JLabel();
40
   JLabel lblField3 = new JLabel();
41
   JLabel lblField4 = new JLabel();
42
   JLabel lblExtraFields1 = new JLabel();
43
   JLabel lblExtraFields2 = new JLabel();
44
   JLabel lblExtraFields3 = new JLabel();
45
   JLabel lblExtraFields4 = new JLabel();
46
   JLabel lblRelationalOperator1 = new JLabel();
47
   JButton btnRemoveAccumulatedFilter = new JButton();
48
   JButton btnAddAccumulatedFilter = new JButton();
49
   JButton btnViewAccumulatedFilter = new JButton();
50
   JLabel lblNull1 = new JLabel();
51
   JLabel lblNull2 = new JLabel();
52
   JLabel lblNull3 = new JLabel();
53
   JLabel lblNull4 = new JLabel();
54
   JLabel lblExpressionDeBusqueda = new JLabel();
55
   JButton btnAdvancedExpression = new JButton();
56
   JButton btnAdvancedExpressionHistory = new JButton();
57
   JButton btnAdvancedExpressionBookmarks = new JButton();
58
   JTextArea txtAdvancedExpression = new JTextArea();
59
   JTable tblResults = new JTable();
60
   JButton btnSearch = new JButton();
61
   JButton btnClear = new JButton();
62
   JLabel lblMsg = new JLabel();
63
   JPanel pnlActions = new JPanel();
64
   JPanel pnlCfgActions = new JPanel();
65
   JButton btnHistory = new JButton();
66
   JButton btnBookmarks = new JButton();
67

    
68
   /**
69
    * Default constructor
70
    */
71
   public DefaultSearchPanelView()
72
   {
73
      initializePanel();
74
   }
75

    
76
   /**
77
    * Main method for panel
78
    */
79
   public static void main(String[] args)
80
   {
81
      JFrame frame = new JFrame();
82
      frame.setSize(600, 400);
83
      frame.setLocation(100, 100);
84
      frame.getContentPane().add(new DefaultSearchPanelView());
85
      frame.setVisible(true);
86

    
87
      frame.addWindowListener( new WindowAdapter()
88
      {
89
         public void windowClosing( WindowEvent evt )
90
         {
91
            System.exit(0);
92
         }
93
      });
94
   }
95

    
96
   /**
97
    * Adds fill components to empty cells in the first row and first column of the grid.
98
    * This ensures that the grid spacing will be the same as shown in the designer.
99
    * @param cols an array of column indices in the first row where fill components should be added.
100
    * @param rows an array of row indices in the first column where fill components should be added.
101
    */
102
   void addFillComponents( Container panel, int[] cols, int[] rows )
103
   {
104
      Dimension filler = new Dimension(10,10);
105

    
106
      boolean filled_cell_11 = false;
107
      CellConstraints cc = new CellConstraints();
108
      if ( cols.length > 0 && rows.length > 0 )
109
      {
110
         if ( cols[0] == 1 && rows[0] == 1 )
111
         {
112
            /** add a rigid area  */
113
            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
114
            filled_cell_11 = true;
115
         }
116
      }
117

    
118
      for( int index = 0; index < cols.length; index++ )
119
      {
120
         if ( cols[index] == 1 && filled_cell_11 )
121
         {
122
            continue;
123
         }
124
         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
125
      }
126

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

    
136
   }
137

    
138
   /**
139
    * Helper method to load an image file from the CLASSPATH
140
    * @param imageName the package and name of the file to load relative to the CLASSPATH
141
    * @return an ImageIcon instance with the specified image file
142
    * @throws IllegalArgumentException if the image resource cannot be loaded.
143
    */
144
   public ImageIcon loadImage( String imageName )
145
   {
146
      try
147
      {
148
         ClassLoader classloader = getClass().getClassLoader();
149
         java.net.URL url = classloader.getResource( imageName );
150
         if ( url != null )
151
         {
152
            ImageIcon icon = new ImageIcon( url );
153
            return icon;
154
         }
155
      }
156
      catch( Exception e )
157
      {
158
         e.printStackTrace();
159
      }
160
      throw new IllegalArgumentException( "Unable to load image: " + imageName );
161
   }
162

    
163
   /**
164
    * Method for recalculating the component orientation for 
165
    * right-to-left Locales.
166
    * @param orientation the component orientation to be applied
167
    */
168
   public void applyComponentOrientation( ComponentOrientation orientation )
169
   {
170
      // Not yet implemented...
171
      // I18NUtils.applyComponentOrientation(this, orientation);
172
      super.applyComponentOrientation(orientation);
173
   }
174

    
175
   public JPanel createPanel()
176
   {
177
      JPanel jpanel1 = new JPanel();
178
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
179
      CellConstraints cc = new CellConstraints();
180
      jpanel1.setLayout(formlayout1);
181

    
182
      tabSearchMode.setName("tabSearchMode");
183
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
184
      tabSearchMode.setBorder(emptyborder1);
185
      tabSearchMode.setTabPlacement(JTabbedPane.BOTTOM);
186
      tabSearchMode.addTab("_Simplified",null,createPanel1());
187
      tabSearchMode.addTab("_Advanced",null,createPanel3());
188
      jpanel1.add(tabSearchMode,cc.xy(2,3));
189

    
190
      tblResults.setName("tblResults");
191
      JScrollPane jscrollpane1 = new JScrollPane();
192
      jscrollpane1.setViewportView(tblResults);
193
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
194
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
195
      jpanel1.add(jscrollpane1,cc.xy(2,6));
196

    
197
      jpanel1.add(createPanel4(),cc.xy(2,4));
198
      jpanel1.add(createPanel5(),cc.xy(2,8));
199
      jpanel1.add(createPanel6(),cc.xy(2,2));
200
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5,6,7,8,9 });
201
      return jpanel1;
202
   }
203

    
204
   public JPanel createPanel1()
205
   {
206
      JPanel jpanel1 = new JPanel();
207
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:12DLU:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:12DLU:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:12DLU:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:12DLU:GROW(1.0),FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
208
      CellConstraints cc = new CellConstraints();
209
      jpanel1.setLayout(formlayout1);
210

    
211
      cboValue1.setEditable(true);
212
      cboValue1.setName("cboValue1");
213
      cboValue1.setRequestFocusEnabled(false);
214
      jpanel1.add(cboValue1,cc.xywh(2,6,3,1));
215

    
216
      cboValue2.setEditable(true);
217
      cboValue2.setName("cboValue2");
218
      cboValue2.setRequestFocusEnabled(false);
219
      jpanel1.add(cboValue2,cc.xywh(8,6,3,1));
220

    
221
      cboValue3.setEditable(true);
222
      cboValue3.setName("cboValue3");
223
      cboValue3.setRequestFocusEnabled(false);
224
      jpanel1.add(cboValue3,cc.xywh(14,6,3,1));
225

    
226
      cboValue4.setEditable(true);
227
      cboValue4.setName("cboValue4");
228
      cboValue4.setRequestFocusEnabled(false);
229
      jpanel1.add(cboValue4,cc.xywh(20,6,2,1));
230

    
231
      lblRelationalOperator2.setName("lblRelationalOperator2");
232
      lblRelationalOperator2.setText("Igual");
233
      lblRelationalOperator2.setHorizontalAlignment(JLabel.CENTER);
234
      jpanel1.add(lblRelationalOperator2,cc.xy(8,4));
235

    
236
      lblRelationalOperator3.setName("lblRelationalOperator3");
237
      lblRelationalOperator3.setText("Igual");
238
      lblRelationalOperator3.setHorizontalAlignment(JLabel.CENTER);
239
      jpanel1.add(lblRelationalOperator3,cc.xy(14,4));
240

    
241
      lblRelationalOperator4.setName("lblRelationalOperator4");
242
      lblRelationalOperator4.setText("Igual");
243
      lblRelationalOperator4.setHorizontalAlignment(JLabel.CENTER);
244
      jpanel1.add(lblRelationalOperator4,cc.xy(20,4));
245

    
246
      lblLogicalOperators1.setName("lblLogicalOperators1");
247
      lblLogicalOperators1.setText("WWWWW");
248
      lblLogicalOperators1.setHorizontalAlignment(JLabel.CENTER);
249
      jpanel1.add(lblLogicalOperators1,cc.xy(6,2));
250

    
251
      lblLogicalOperators2.setName("lblLogicalOperators2");
252
      lblLogicalOperators2.setText("WWWWW");
253
      lblLogicalOperators2.setHorizontalAlignment(JLabel.CENTER);
254
      jpanel1.add(lblLogicalOperators2,cc.xy(12,2));
255

    
256
      lblLogicalOperators3.setName("lblLogicalOperators3");
257
      lblLogicalOperators3.setText("WWWWW");
258
      lblLogicalOperators3.setHorizontalAlignment(JLabel.CENTER);
259
      jpanel1.add(lblLogicalOperators3,cc.xy(18,2));
260

    
261
      lblField1.setName("lblField1");
262
      lblField1.setHorizontalAlignment(JLabel.CENTER);
263
      jpanel1.add(lblField1,cc.xy(2,2));
264

    
265
      lblField2.setName("lblField2");
266
      lblField2.setHorizontalAlignment(JLabel.CENTER);
267
      jpanel1.add(lblField2,cc.xy(8,2));
268

    
269
      lblField3.setName("lblField3");
270
      lblField3.setHorizontalAlignment(JLabel.CENTER);
271
      jpanel1.add(lblField3,cc.xy(14,2));
272

    
273
      lblField4.setName("lblField4");
274
      lblField4.setHorizontalAlignment(JLabel.CENTER);
275
      jpanel1.add(lblField4,cc.xy(20,2));
276

    
277
      lblExtraFields1.setIcon(loadImage("search-select-column.png"));
278
      lblExtraFields1.setName("lblExtraFields1");
279
      jpanel1.add(lblExtraFields1,cc.xy(4,2));
280

    
281
      lblExtraFields2.setIcon(loadImage("search-select-column.png"));
282
      lblExtraFields2.setName("lblExtraFields2");
283
      jpanel1.add(lblExtraFields2,cc.xy(10,2));
284

    
285
      lblExtraFields3.setIcon(loadImage("search-select-column.png"));
286
      lblExtraFields3.setName("lblExtraFields3");
287
      jpanel1.add(lblExtraFields3,cc.xy(16,2));
288

    
289
      lblExtraFields4.setIcon(loadImage("search-select-column.png"));
290
      lblExtraFields4.setName("lblExtraFields4");
291
      jpanel1.add(lblExtraFields4,cc.xy(21,2));
292

    
293
      lblRelationalOperator1.setName("lblRelationalOperator1");
294
      lblRelationalOperator1.setText("Igual");
295
      lblRelationalOperator1.setHorizontalAlignment(JLabel.CENTER);
296
      jpanel1.add(lblRelationalOperator1,cc.xy(2,4));
297

    
298
      jpanel1.add(createPanel2(),cc.xywh(2,8,20,1));
299
      lblNull1.setName("lblNull1");
300
      lblNull1.setText("");
301
      lblNull1.setHorizontalAlignment(JLabel.CENTER);
302
      jpanel1.add(lblNull1,cc.xy(4,4));
303

    
304
      lblNull2.setName("lblNull2");
305
      lblNull2.setText("");
306
      lblNull2.setHorizontalAlignment(JLabel.CENTER);
307
      jpanel1.add(lblNull2,cc.xy(10,4));
308

    
309
      lblNull3.setName("lblNull3");
310
      lblNull3.setText("");
311
      lblNull3.setHorizontalAlignment(JLabel.CENTER);
312
      jpanel1.add(lblNull3,cc.xy(16,4));
313

    
314
      lblNull4.setName("lblNull4");
315
      lblNull4.setText("");
316
      lblNull4.setHorizontalAlignment(JLabel.CENTER);
317
      jpanel1.add(lblNull4,cc.xy(21,4));
318

    
319
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 },new int[]{ 1,2,3,4,5,6,7,8,9 });
320
      return jpanel1;
321
   }
322

    
323
   public JPanel createPanel2()
324
   {
325
      JPanel jpanel1 = new JPanel();
326
      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");
327
      CellConstraints cc = new CellConstraints();
328
      jpanel1.setLayout(formlayout1);
329

    
330
      btnRemoveAccumulatedFilter.setActionCommand("...");
331
      btnRemoveAccumulatedFilter.setIcon(loadImage("search-simplifiedcondition-clear-accumulate.png"));
332
      btnRemoveAccumulatedFilter.setName("btnRemoveAccumulatedFilter");
333
      btnRemoveAccumulatedFilter.setToolTipText("_Remove_accumulated_filter");
334
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
335
      btnRemoveAccumulatedFilter.setBorder(emptyborder1);
336
      jpanel1.add(btnRemoveAccumulatedFilter,cc.xy(3,1));
337

    
338
      btnAddAccumulatedFilter.setActionCommand("...");
339
      btnAddAccumulatedFilter.setIcon(loadImage("search-simplifiedcondition-add-accumulate.png"));
340
      btnAddAccumulatedFilter.setName("btnAddAccumulatedFilter");
341
      btnAddAccumulatedFilter.setToolTipText("_Accumulate_filter");
342
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
343
      btnAddAccumulatedFilter.setBorder(emptyborder2);
344
      jpanel1.add(btnAddAccumulatedFilter,cc.xy(7,1));
345

    
346
      btnViewAccumulatedFilter.setActionCommand("...");
347
      btnViewAccumulatedFilter.setIcon(loadImage("search-simplifiedcondition-edit-accumulate.png"));
348
      btnViewAccumulatedFilter.setName("btnViewAccumulatedFilter");
349
      btnViewAccumulatedFilter.setToolTipText("_View_accumulated_filter");
350
      EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2);
351
      btnViewAccumulatedFilter.setBorder(emptyborder3);
352
      jpanel1.add(btnViewAccumulatedFilter,cc.xy(5,1));
353

    
354
      addFillComponents(jpanel1,new int[]{ 1,2,4,6 },new int[]{ 1 });
355
      return jpanel1;
356
   }
357

    
358
   public JPanel createPanel3()
359
   {
360
      JPanel jpanel1 = new JPanel();
361
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE");
362
      CellConstraints cc = new CellConstraints();
363
      jpanel1.setLayout(formlayout1);
364

    
365
      lblExpressionDeBusqueda.setName("lblExpressionDeBusqueda");
366
      lblExpressionDeBusqueda.setText("_Insert_a_search_expression");
367
      jpanel1.add(lblExpressionDeBusqueda,cc.xy(2,2));
368

    
369
      btnAdvancedExpression.setActionCommand("...");
370
      btnAdvancedExpression.setName("btnAdvancedExpression");
371
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
372
      btnAdvancedExpression.setBorder(emptyborder1);
373
      jpanel1.add(btnAdvancedExpression,new CellConstraints(4,4,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
374

    
375
      btnAdvancedExpressionHistory.setActionCommand("...");
376
      btnAdvancedExpressionHistory.setName("btnAdvancedExpressionHistory");
377
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
378
      btnAdvancedExpressionHistory.setBorder(emptyborder2);
379
      jpanel1.add(btnAdvancedExpressionHistory,new CellConstraints(6,4,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
380

    
381
      btnAdvancedExpressionBookmarks.setActionCommand("...");
382
      btnAdvancedExpressionBookmarks.setName("btnAdvancedExpressionBookmarks");
383
      EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2);
384
      btnAdvancedExpressionBookmarks.setBorder(emptyborder3);
385
      jpanel1.add(btnAdvancedExpressionBookmarks,new CellConstraints(8,4,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
386

    
387
      txtAdvancedExpression.setName("txtAdvancedExpression");
388
      JScrollPane jscrollpane1 = new JScrollPane();
389
      jscrollpane1.setViewportView(txtAdvancedExpression);
390
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
391
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
392
      jpanel1.add(jscrollpane1,cc.xy(2,4));
393

    
394
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9 },new int[]{ 1,2,3,4,5 });
395
      return jpanel1;
396
   }
397

    
398
   public JPanel createPanel4()
399
   {
400
      JPanel jpanel1 = new JPanel();
401
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
402
      CellConstraints cc = new CellConstraints();
403
      jpanel1.setLayout(formlayout1);
404

    
405
      btnSearch.setActionCommand("Buscar");
406
      btnSearch.setName("btnSearch");
407
      btnSearch.setText("_Search");
408
      jpanel1.add(btnSearch,cc.xy(4,1));
409

    
410
      btnClear.setActionCommand("Limpiar");
411
      btnClear.setName("btnClear");
412
      btnClear.setText("_Clear");
413
      jpanel1.add(btnClear,cc.xy(2,1));
414

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

    
419
   public JPanel createPanel5()
420
   {
421
      JPanel jpanel1 = new JPanel();
422
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
423
      CellConstraints cc = new CellConstraints();
424
      jpanel1.setLayout(formlayout1);
425

    
426
      lblMsg.setName("lblMsg");
427
      jpanel1.add(lblMsg,cc.xy(1,1));
428

    
429
      pnlActions.setName("pnlActions");
430
      jpanel1.add(pnlActions,cc.xy(3,1));
431

    
432
      addFillComponents(jpanel1,new int[]{ 2 },new int[0]);
433
      return jpanel1;
434
   }
435

    
436
   public JPanel createPanel6()
437
   {
438
      JPanel jpanel1 = new JPanel();
439
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:3PX:NONE,FILL:DEFAULT:NONE,FILL:3PX:NONE,FILL:DEFAULT:NONE,FILL:3PX:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
440
      CellConstraints cc = new CellConstraints();
441
      jpanel1.setLayout(formlayout1);
442

    
443
      pnlCfgActions.setName("pnlCfgActions");
444
      pnlCfgActions.setOpaque(false);
445
      jpanel1.add(pnlCfgActions,cc.xy(7,1));
446

    
447
      btnHistory.setActionCommand("...");
448
      btnHistory.setName("btnHistory");
449
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
450
      btnHistory.setBorder(emptyborder1);
451
      jpanel1.add(btnHistory,cc.xy(3,1));
452

    
453
      btnBookmarks.setActionCommand("...");
454
      btnBookmarks.setName("btnBookmarks");
455
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
456
      btnBookmarks.setBorder(emptyborder2);
457
      jpanel1.add(btnBookmarks,cc.xy(5,1));
458

    
459
      addFillComponents(jpanel1,new int[]{ 1,2,4,6 },new int[]{ 1 });
460
      return jpanel1;
461
   }
462

    
463
   /**
464
    * Initializer
465
    */
466
   protected void initializePanel()
467
   {
468
      setLayout(new BorderLayout());
469
      add(createPanel(), BorderLayout.CENTER);
470
   }
471

    
472

    
473
}