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 / DefaultSearchPanelView2.java @ 46079

History | View | Annotate | Download (23 KB)

1
package org.gvsig.fmap.dal.swing.impl.searchpanel;
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 java.awt.event.WindowAdapter;
11
import java.awt.event.WindowEvent;
12
import javax.swing.Box;
13
import javax.swing.ImageIcon;
14
import javax.swing.JButton;
15
import javax.swing.JComboBox;
16
import javax.swing.JFrame;
17
import javax.swing.JLabel;
18
import javax.swing.JPanel;
19
import javax.swing.JProgressBar;
20
import javax.swing.JScrollPane;
21
import javax.swing.JTabbedPane;
22
import javax.swing.JTable;
23
import javax.swing.JTextArea;
24
import javax.swing.border.EmptyBorder;
25

    
26

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

    
75
   /**
76
    * Default constructor
77
    */
78
   public DefaultSearchPanelView2()
79
   {
80
      initializePanel();
81
   }
82

    
83
   /**
84
    * Main method for panel
85
    */
86
   public static void main(String[] args)
87
   {
88
      JFrame frame = new JFrame();
89
      frame.setSize(600, 400);
90
      frame.setLocation(100, 100);
91
      frame.getContentPane().add(new DefaultSearchPanelView2());
92
      frame.setVisible(true);
93

    
94
      frame.addWindowListener( new WindowAdapter()
95
      {
96
         public void windowClosing( WindowEvent evt )
97
         {
98
            System.exit(0);
99
         }
100
      });
101
   }
102

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

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

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

    
134
      for( int index = 0; index < rows.length; index++ )
135
      {
136
         if ( rows[index] == 1 && filled_cell_11 )
137
         {
138
            continue;
139
         }
140
         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
141
      }
142

    
143
   }
144

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

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

    
182
   public JPanel createPanel()
183
   {
184
      JPanel jpanel1 = new JPanel();
185
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:MIN(12DLU;PREF):GROW(1.0),FILL:4DLU:NONE","CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,FILL:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
186
      CellConstraints cc = new CellConstraints();
187
      jpanel1.setLayout(formlayout1);
188

    
189
      tabSearchMode.setName("tabSearchMode");
190
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
191
      tabSearchMode.setBorder(emptyborder1);
192
      tabSearchMode.setTabPlacement(JTabbedPane.BOTTOM);
193
      tabSearchMode.addTab("_Simplified",null,createPanel1());
194
      tabSearchMode.addTab("_Advanced",null,createPanel3());
195
      jpanel1.add(tabSearchMode,new CellConstraints(2,3,1,1,CellConstraints.FILL,CellConstraints.DEFAULT));
196

    
197
      tabResults.setName("tabResults");
198
      tabResults.addTab("_normalResults",null,createPanel4());
199
      tabResults.addTab("_searchPostProcessResults",null,createPanel5());
200
      jpanel1.add(tabResults,new CellConstraints(2,6,1,1,CellConstraints.FILL,CellConstraints.FILL));
201

    
202
      jpanel1.add(createPanel6(),new CellConstraints(2,4,1,1,CellConstraints.RIGHT,CellConstraints.DEFAULT));
203
      jpanel1.add(createPanel7(),new CellConstraints(2,2,1,1,CellConstraints.RIGHT,CellConstraints.DEFAULT));
204
      jpanel1.add(createPanel8(),cc.xy(2,8));
205
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5,6,7,8,9 });
206
      return jpanel1;
207
   }
208

    
209
   public JPanel createPanel1()
210
   {
211
      JPanel jpanel1 = new JPanel();
212
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:MAX(120PX;DEFAULT):NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:MAX(120PX;DEFAULT):NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:MAX(120PX;DEFAULT):NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:MAX(120PX;DEFAULT):NONE,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");
213
      CellConstraints cc = new CellConstraints();
214
      jpanel1.setLayout(formlayout1);
215

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

    
221
      cboValue2.setEditable(true);
222
      cboValue2.setName("cboValue2");
223
      cboValue2.setRequestFocusEnabled(false);
224
      jpanel1.add(cboValue2,new CellConstraints(8,6,3,1,CellConstraints.FILL,CellConstraints.DEFAULT));
225

    
226
      cboValue3.setEditable(true);
227
      cboValue3.setName("cboValue3");
228
      cboValue3.setRequestFocusEnabled(false);
229
      jpanel1.add(cboValue3,cc.xywh(14,6,3,1));
230

    
231
      cboValue4.setEditable(true);
232
      cboValue4.setName("cboValue4");
233
      cboValue4.setRequestFocusEnabled(false);
234
      jpanel1.add(cboValue4,cc.xywh(20,6,2,1));
235

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

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

    
246
      lblRelationalOperator3.setName("lblRelationalOperator3");
247
      lblRelationalOperator3.setText("Igual");
248
      lblRelationalOperator3.setHorizontalAlignment(JLabel.CENTER);
249
      jpanel1.add(lblRelationalOperator3,cc.xy(14,4));
250

    
251
      lblRelationalOperator4.setName("lblRelationalOperator4");
252
      lblRelationalOperator4.setText("Igual");
253
      lblRelationalOperator4.setHorizontalAlignment(JLabel.CENTER);
254
      jpanel1.add(lblRelationalOperator4,cc.xy(20,4));
255

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

    
261
      lblLogicalOperators2.setName("lblLogicalOperators2");
262
      lblLogicalOperators2.setText("WWWWW");
263
      lblLogicalOperators2.setHorizontalAlignment(JLabel.CENTER);
264
      jpanel1.add(lblLogicalOperators2,cc.xy(12,2));
265

    
266
      lblLogicalOperators3.setName("lblLogicalOperators3");
267
      lblLogicalOperators3.setText("WWWWW");
268
      lblLogicalOperators3.setHorizontalAlignment(JLabel.CENTER);
269
      jpanel1.add(lblLogicalOperators3,cc.xy(18,2));
270

    
271
      lblField1.setName("lblField1");
272
      lblField1.setHorizontalAlignment(JLabel.CENTER);
273
      jpanel1.add(lblField1,cc.xy(2,2));
274

    
275
      lblField2.setName("lblField2");
276
      lblField2.setHorizontalAlignment(JLabel.CENTER);
277
      jpanel1.add(lblField2,cc.xy(8,2));
278

    
279
      lblField3.setName("lblField3");
280
      lblField3.setHorizontalAlignment(JLabel.CENTER);
281
      jpanel1.add(lblField3,cc.xy(14,2));
282

    
283
      lblField4.setName("lblField4");
284
      lblField4.setHorizontalAlignment(JLabel.CENTER);
285
      jpanel1.add(lblField4,cc.xy(20,2));
286

    
287
      lblExtraFields1.setIcon(loadImage("src/main/resources/org/gvsig/fmap/dal/swing/impl/searchpanel/featurestore-column.png"));
288
      lblExtraFields1.setName("lblExtraFields1");
289
      jpanel1.add(lblExtraFields1,cc.xy(4,2));
290

    
291
      lblExtraFields2.setIcon(loadImage("src/main/resources/org/gvsig/fmap/dal/swing/impl/searchpanel/featurestore-column.png"));
292
      lblExtraFields2.setName("lblExtraFields2");
293
      jpanel1.add(lblExtraFields2,cc.xy(10,2));
294

    
295
      lblExtraFields3.setIcon(loadImage("src/main/resources/org/gvsig/fmap/dal/swing/impl/searchpanel/featurestore-column.png"));
296
      lblExtraFields3.setName("lblExtraFields3");
297
      jpanel1.add(lblExtraFields3,cc.xy(16,2));
298

    
299
      lblExtraFields4.setIcon(loadImage("src/main/resources/org/gvsig/fmap/dal/swing/impl/searchpanel/featurestore-column.png"));
300
      lblExtraFields4.setName("lblExtraFields4");
301
      jpanel1.add(lblExtraFields4,cc.xy(21,2));
302

    
303
      lblNull1.setName("lblNull1");
304
      lblNull1.setHorizontalAlignment(JLabel.CENTER);
305
      jpanel1.add(lblNull1,cc.xy(4,4));
306

    
307
      lblNull2.setName("lblNull2");
308
      lblNull2.setHorizontalAlignment(JLabel.CENTER);
309
      jpanel1.add(lblNull2,cc.xy(10,4));
310

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

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

    
319
      jpanel1.add(createPanel2(),cc.xywh(2,8,20,1));
320
      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 });
321
      return jpanel1;
322
   }
323

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

    
331
      btnRemoveAccumulatedFilter.setActionCommand("...");
332
      btnRemoveAccumulatedFilter.setIcon(loadImage("src/main/resources/org/gvsig/fmap/dal/swing/impl/searchpanel/search-simplifiedcondition-clear-accumulate.png"));
333
      btnRemoveAccumulatedFilter.setName("btnRemoveAccumulatedFilter");
334
      btnRemoveAccumulatedFilter.setToolTipText("_Remove_accumulated_filter");
335
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
336
      btnRemoveAccumulatedFilter.setBorder(emptyborder1);
337
      jpanel1.add(btnRemoveAccumulatedFilter,cc.xy(3,1));
338

    
339
      btnAddAccumulatedFilter.setActionCommand("...");
340
      btnAddAccumulatedFilter.setIcon(loadImage("src/main/resources/org/gvsig/fmap/dal/swing/impl/searchpanel/search-simplifiedcondition-add-accumulate.png"));
341
      btnAddAccumulatedFilter.setName("btnAddAccumulatedFilter");
342
      btnAddAccumulatedFilter.setToolTipText("_Accumulate_filter");
343
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
344
      btnAddAccumulatedFilter.setBorder(emptyborder2);
345
      jpanel1.add(btnAddAccumulatedFilter,cc.xy(7,1));
346

    
347
      btnViewAccumulatedFilter.setActionCommand("...");
348
      btnViewAccumulatedFilter.setIcon(loadImage("src/main/resources/org/gvsig/fmap/dal/swing/impl/searchpanel/search-simplifiedcondition-edit-accumulate.png"));
349
      btnViewAccumulatedFilter.setName("btnViewAccumulatedFilter");
350
      btnViewAccumulatedFilter.setToolTipText("_View_accumulated_filter");
351
      EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2);
352
      btnViewAccumulatedFilter.setBorder(emptyborder3);
353
      jpanel1.add(btnViewAccumulatedFilter,cc.xy(5,1));
354

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

    
359
   public JPanel createPanel3()
360
   {
361
      JPanel jpanel1 = new JPanel();
362
      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");
363
      CellConstraints cc = new CellConstraints();
364
      jpanel1.setLayout(formlayout1);
365

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

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

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

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

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

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

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

    
407
      tblResults.setName("tblResults");
408
      JScrollPane jscrollpane1 = new JScrollPane();
409
      jscrollpane1.setViewportView(tblResults);
410
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
411
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
412
      jpanel1.add(jscrollpane1,cc.xy(2,2));
413

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

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

    
425
      tblSearchPostProcessResults.setName("tblSearchPostProcessResults");
426
      JScrollPane jscrollpane1 = new JScrollPane();
427
      jscrollpane1.setViewportView(tblSearchPostProcessResults);
428
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
429
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
430
      jpanel1.add(jscrollpane1,cc.xy(2,2));
431

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

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

    
443
      btnClear.setActionCommand("Limpiar");
444
      btnClear.setName("btnClear");
445
      btnClear.setText("_Clear");
446
      jpanel1.add(btnClear,cc.xy(2,1));
447

    
448
      btnSearch.setActionCommand("Buscar");
449
      btnSearch.setName("btnSearch");
450
      btnSearch.setText("_Search");
451
      jpanel1.add(btnSearch,cc.xy(4,1));
452

    
453
      btnSearchPostProcess.setActionCommand("Buscar");
454
      btnSearchPostProcess.setName("btnSearchPostProcess");
455
      btnSearchPostProcess.setText("_PostProcess");
456
      jpanel1.add(btnSearchPostProcess,cc.xy(6,1));
457

    
458
      addFillComponents(jpanel1,new int[]{ 1,3,5,7 },new int[]{ 1 });
459
      return jpanel1;
460
   }
461

    
462
   public JPanel createPanel7()
463
   {
464
      JPanel jpanel1 = new JPanel();
465
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:3PX:NONE,FILL:DEFAULT:NONE,FILL:3PX:NONE,FILL:DEFAULT:NONE,FILL:3PX:NONE,FILL:DEFAULT:NONE,FILL:10PX:NONE","CENTER:DEFAULT:NONE");
466
      CellConstraints cc = new CellConstraints();
467
      jpanel1.setLayout(formlayout1);
468

    
469
      btnHistory.setActionCommand("...");
470
      btnHistory.setName("btnHistory");
471
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
472
      btnHistory.setBorder(emptyborder1);
473
      jpanel1.add(btnHistory,cc.xy(3,1));
474

    
475
      btnBookmarks.setActionCommand("...");
476
      btnBookmarks.setName("btnBookmarks");
477
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
478
      btnBookmarks.setBorder(emptyborder2);
479
      jpanel1.add(btnBookmarks,cc.xy(5,1));
480

    
481
      pnlCfgActions.setName("pnlCfgActions");
482
      pnlCfgActions.setOpaque(false);
483
      jpanel1.add(pnlCfgActions,cc.xy(7,1));
484

    
485
      addFillComponents(jpanel1,new int[]{ 1,2,4,6,8 },new int[]{ 1 });
486
      return jpanel1;
487
   }
488

    
489
   public JPanel createPanel8()
490
   {
491
      JPanel jpanel1 = new JPanel();
492
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:6PX:NONE,FILL:DEFAULT:NONE,FILL:6PX:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
493
      CellConstraints cc = new CellConstraints();
494
      jpanel1.setLayout(formlayout1);
495

    
496
      pgbStatus.setName("pgbStatus");
497
      jpanel1.add(pgbStatus,cc.xy(1,1));
498

    
499
      lblStatusTitle.setName("lblStatusTitle");
500
      jpanel1.add(lblStatusTitle,cc.xy(3,1));
501

    
502
      lblMsg.setName("lblMsg");
503
      jpanel1.add(lblMsg,cc.xy(5,1));
504

    
505
      pnlActions.setName("pnlActions");
506
      jpanel1.add(pnlActions,cc.xy(6,1));
507

    
508
      addFillComponents(jpanel1,new int[]{ 2,4 },new int[0]);
509
      return jpanel1;
510
   }
511

    
512
   /**
513
    * Initializer
514
    */
515
   protected void initializePanel()
516
   {
517
      setLayout(new BorderLayout());
518
      add(createPanel(), BorderLayout.CENTER);
519
   }
520

    
521

    
522
}