Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.expressionevaluator / org.gvsig.expressionevaluator.swing / org.gvsig.expressionevaluator.swing.impl / src / main / java / org / gvsig / expressionevaluator / swing / impl / DefaultJExpressionBuilderView.java @ 44644

History | View | Annotate | Download (18.4 KB)

1 43939 jjdelcerro
package org.gvsig.expressionevaluator.swing.impl;
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.Color;
8
import java.awt.ComponentOrientation;
9
import java.awt.Container;
10
import java.awt.Dimension;
11
import javax.swing.Box;
12
import javax.swing.ImageIcon;
13
import javax.swing.JButton;
14 43983 jjdelcerro
import javax.swing.JComboBox;
15 43939 jjdelcerro
import javax.swing.JFrame;
16 43983 jjdelcerro
import javax.swing.JLabel;
17 43939 jjdelcerro
import javax.swing.JList;
18
import javax.swing.JPanel;
19
import javax.swing.JScrollPane;
20
import javax.swing.JTabbedPane;
21
import javax.swing.JTextArea;
22
import javax.swing.JTextField;
23
import javax.swing.JTree;
24
import javax.swing.border.EmptyBorder;
25
26
27
public class DefaultJExpressionBuilderView extends JPanel
28
{
29
   JTabbedPane tabExpressionBuilder = new JTabbedPane();
30
   JList lstSimpleElement = new JList();
31 44006 jjdelcerro
   JTree treeElements = new JTree();
32 43939 jjdelcerro
   JTextArea txtExpression = new JTextArea();
33
   JButton btnEq = new JButton();
34 43987 jjdelcerro
   JButton btnNeq = new JButton();
35 43939 jjdelcerro
   JButton btnAdd = new JButton();
36
   JButton btnSubst = new JButton();
37
   JButton btnMult = new JButton();
38
   JButton btnDiv = new JButton();
39
   JButton btnParentOpen = new JButton();
40
   JButton btnParentClose = new JButton();
41 44098 jjdelcerro
   JLabel lblMsg = new JLabel();
42
   JButton btnTip = new JButton();
43
   JLabel lblColumn = new JLabel();
44 43939 jjdelcerro
   JTextField txtGroupElement = new JTextField();
45
   JButton btnGroupElementInsert = new JButton();
46
   JButton btnSimpleElementInsert = new JButton();
47 43983 jjdelcerro
   JButton btnSimpleElementSortDown = new JButton();
48 43939 jjdelcerro
   JButton btnSimpleElementSortUp = new JButton();
49 43983 jjdelcerro
   JLabel lblSimpleElementsMsg = new JLabel();
50 43987 jjdelcerro
   JButton btnSimpleElementTimeLimit = new JButton();
51 43939 jjdelcerro
   JTextField txtSimpleElementFilter = new JTextField();
52
   JButton btnSimpleElementFilter = new JButton();
53 44006 jjdelcerro
   JPanel pnlDescription = new JPanel();
54 43983 jjdelcerro
   JPanel pnlScriptEditorContainer = new JPanel();
55
   JComboBox cboPickerScripts = new JComboBox();
56
   JButton btnPickerRemove = new JButton();
57
   JButton btnPickerSelectScript = new JButton();
58 43939 jjdelcerro
59
   /**
60
    * Default constructor
61
    */
62
   public DefaultJExpressionBuilderView()
63
   {
64
      initializePanel();
65
   }
66
67
   /**
68
    * Adds fill components to empty cells in the first row and first column of the grid.
69
    * This ensures that the grid spacing will be the same as shown in the designer.
70
    * @param cols an array of column indices in the first row where fill components should be added.
71
    * @param rows an array of row indices in the first column where fill components should be added.
72
    */
73
   void addFillComponents( Container panel, int[] cols, int[] rows )
74
   {
75
      Dimension filler = new Dimension(10,10);
76
77
      boolean filled_cell_11 = false;
78
      CellConstraints cc = new CellConstraints();
79
      if ( cols.length > 0 && rows.length > 0 )
80
      {
81
         if ( cols[0] == 1 && rows[0] == 1 )
82
         {
83
            /** add a rigid area  */
84
            panel.add( Box.createRigidArea( filler ), cc.xy(1,1) );
85
            filled_cell_11 = true;
86
         }
87
      }
88
89
      for( int index = 0; index < cols.length; index++ )
90
      {
91
         if ( cols[index] == 1 && filled_cell_11 )
92
         {
93
            continue;
94
         }
95
         panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) );
96
      }
97
98
      for( int index = 0; index < rows.length; index++ )
99
      {
100
         if ( rows[index] == 1 && filled_cell_11 )
101
         {
102
            continue;
103
         }
104
         panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) );
105
      }
106
107
   }
108
109
   /**
110
    * Helper method to load an image file from the CLASSPATH
111
    * @param imageName the package and name of the file to load relative to the CLASSPATH
112
    * @return an ImageIcon instance with the specified image file
113
    * @throws IllegalArgumentException if the image resource cannot be loaded.
114
    */
115
   public ImageIcon loadImage( String imageName )
116
   {
117
      try
118
      {
119
         ClassLoader classloader = getClass().getClassLoader();
120
         java.net.URL url = classloader.getResource( imageName );
121
         if ( url != null )
122
         {
123
            ImageIcon icon = new ImageIcon( url );
124
            return icon;
125
         }
126
      }
127
      catch( Exception e )
128
      {
129
         e.printStackTrace();
130
      }
131
      throw new IllegalArgumentException( "Unable to load image: " + imageName );
132
   }
133
134
   /**
135
    * Method for recalculating the component orientation for
136
    * right-to-left Locales.
137
    * @param orientation the component orientation to be applied
138
    */
139
   public void applyComponentOrientation( ComponentOrientation orientation )
140
   {
141
      // Not yet implemented...
142
      // I18NUtils.applyComponentOrientation(this, orientation);
143
      super.applyComponentOrientation(orientation);
144
   }
145
146
   public JPanel createPanel()
147
   {
148
      JPanel jpanel1 = new JPanel();
149
      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");
150
      CellConstraints cc = new CellConstraints();
151
      jpanel1.setLayout(formlayout1);
152
153
      tabExpressionBuilder.setName("tabExpressionBuilder");
154
      tabExpressionBuilder.addTab("_Expression",null,createPanel1());
155 44098 jjdelcerro
      tabExpressionBuilder.addTab("_Scripts",null,createPanel8());
156 43939 jjdelcerro
      jpanel1.add(tabExpressionBuilder,cc.xy(2,2));
157
158
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3 });
159
      return jpanel1;
160
   }
161
162
   public JPanel createPanel1()
163
   {
164
      JPanel jpanel1 = new JPanel();
165 43987 jjdelcerro
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:80DLU:GROW(0.2),FILL:4DLU:NONE,FILL:100DLU:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(0.8),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:DEFAULT:NONE");
166 43939 jjdelcerro
      CellConstraints cc = new CellConstraints();
167
      jpanel1.setLayout(formlayout1);
168
169
      lstSimpleElement.setName("lstSimpleElement");
170
      JScrollPane jscrollpane1 = new JScrollPane();
171
      jscrollpane1.setViewportView(lstSimpleElement);
172
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
173
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
174
      jpanel1.add(jscrollpane1,cc.xy(4,8));
175
176
      treeElements.setName("treeElements");
177
      JScrollPane jscrollpane2 = new JScrollPane();
178
      jscrollpane2.setViewportView(treeElements);
179
      jscrollpane2.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
180
      jscrollpane2.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
181
      jpanel1.add(jscrollpane2,cc.xywh(2,4,1,6));
182
183 44006 jjdelcerro
      jpanel1.add(createPanel2(),cc.xywh(2,2,5,1));
184 44098 jjdelcerro
      jpanel1.add(createPanel5(),cc.xy(4,4));
185
      jpanel1.add(createPanel6(),cc.xy(4,9));
186
      jpanel1.add(createPanel7(),cc.xy(4,6));
187 44006 jjdelcerro
      pnlDescription.setName("pnlDescription");
188
      jpanel1.add(pnlDescription,cc.xywh(6,4,1,6));
189
190 43939 jjdelcerro
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6,7,8,9 });
191
      return jpanel1;
192
   }
193
194
   public JPanel createPanel2()
195
   {
196
      JPanel jpanel1 = new JPanel();
197 44098 jjdelcerro
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","FILL:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");
198 43939 jjdelcerro
      CellConstraints cc = new CellConstraints();
199
      jpanel1.setLayout(formlayout1);
200
201 44006 jjdelcerro
      txtExpression.setLineWrap(true);
202 43939 jjdelcerro
      txtExpression.setName("txtExpression");
203 43987 jjdelcerro
      txtExpression.setRows(2);
204 43939 jjdelcerro
      JScrollPane jscrollpane1 = new JScrollPane();
205
      jscrollpane1.setViewportView(txtExpression);
206
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
207 44006 jjdelcerro
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
208 43939 jjdelcerro
      jpanel1.add(jscrollpane1,cc.xy(1,1));
209
210 44098 jjdelcerro
      jpanel1.add(createPanel3(),new CellConstraints(3,1,1,3,CellConstraints.DEFAULT,CellConstraints.TOP));
211
      jpanel1.add(createPanel4(),cc.xy(1,3));
212
      addFillComponents(jpanel1,new int[]{ 2,3 },new int[]{ 2,3 });
213 43939 jjdelcerro
      return jpanel1;
214
   }
215
216
   public JPanel createPanel3()
217
   {
218
      JPanel jpanel1 = new JPanel();
219 43987 jjdelcerro
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
220 43939 jjdelcerro
      CellConstraints cc = new CellConstraints();
221
      jpanel1.setLayout(formlayout1);
222
223
      btnEq.setActionCommand("+");
224
      btnEq.setName("btnEq");
225
      btnEq.setText("=");
226
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
227
      btnEq.setBorder(emptyborder1);
228
      jpanel1.add(btnEq,cc.xy(1,1));
229
230 43987 jjdelcerro
      btnNeq.setActionCommand("+");
231
      btnNeq.setName("btnNeq");
232
      btnNeq.setText("<>");
233
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
234
      btnNeq.setBorder(emptyborder2);
235
      jpanel1.add(btnNeq,cc.xy(3,1));
236
237 43939 jjdelcerro
      btnAdd.setActionCommand("+");
238
      btnAdd.setName("btnAdd");
239
      btnAdd.setText("+");
240 43987 jjdelcerro
      EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2);
241
      btnAdd.setBorder(emptyborder3);
242
      jpanel1.add(btnAdd,cc.xy(5,1));
243 43939 jjdelcerro
244
      btnSubst.setActionCommand("+");
245
      btnSubst.setName("btnSubst");
246
      btnSubst.setText("-");
247 43987 jjdelcerro
      EmptyBorder emptyborder4 = new EmptyBorder(2,2,2,2);
248
      btnSubst.setBorder(emptyborder4);
249
      jpanel1.add(btnSubst,cc.xy(7,1));
250 43939 jjdelcerro
251
      btnMult.setActionCommand("+");
252
      btnMult.setName("btnMult");
253
      btnMult.setText("*");
254 43987 jjdelcerro
      EmptyBorder emptyborder5 = new EmptyBorder(2,2,2,2);
255
      btnMult.setBorder(emptyborder5);
256
      jpanel1.add(btnMult,cc.xy(1,3));
257 43939 jjdelcerro
258
      btnDiv.setActionCommand("+");
259
      btnDiv.setName("btnDiv");
260
      btnDiv.setText("/");
261 43987 jjdelcerro
      EmptyBorder emptyborder6 = new EmptyBorder(2,2,2,2);
262
      btnDiv.setBorder(emptyborder6);
263
      jpanel1.add(btnDiv,cc.xy(3,3));
264 43939 jjdelcerro
265
      btnParentOpen.setActionCommand("+");
266
      btnParentOpen.setName("btnParentOpen");
267
      btnParentOpen.setText("(");
268 43987 jjdelcerro
      EmptyBorder emptyborder7 = new EmptyBorder(2,2,2,2);
269
      btnParentOpen.setBorder(emptyborder7);
270
      jpanel1.add(btnParentOpen,cc.xy(5,3));
271 43939 jjdelcerro
272
      btnParentClose.setActionCommand("+");
273
      btnParentClose.setName("btnParentClose");
274
      btnParentClose.setText(")");
275
      EmptyBorder emptyborder8 = new EmptyBorder(2,2,2,2);
276 43987 jjdelcerro
      btnParentClose.setBorder(emptyborder8);
277
      jpanel1.add(btnParentClose,cc.xy(7,3));
278 43939 jjdelcerro
279 43987 jjdelcerro
      addFillComponents(jpanel1,new int[]{ 2,4,6,8 },new int[]{ 2,4 });
280 43939 jjdelcerro
      return jpanel1;
281
   }
282
283
   public JPanel createPanel4()
284
   {
285
      JPanel jpanel1 = new JPanel();
286 44098 jjdelcerro
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
287
      CellConstraints cc = new CellConstraints();
288
      jpanel1.setLayout(formlayout1);
289
290
      lblMsg.setName("lblMsg");
291
      jpanel1.add(lblMsg,cc.xy(1,1));
292
293
      btnTip.setActionCommand("+");
294
      btnTip.setIcon(loadImage("datos/devel/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.swing/org.gvsig.expressionevaluator.swing.impl/src/main/resources/org/gvsig/expressionevaluator/swing/impl/expressionbuilder-tip.png.png"));
295
      btnTip.setName("btnTip");
296
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
297
      btnTip.setBorder(emptyborder1);
298
      jpanel1.add(btnTip,cc.xy(5,1));
299
300
      lblColumn.setName("lblColumn");
301
      lblColumn.setText("0");
302
      jpanel1.add(lblColumn,cc.xy(3,1));
303
304
      addFillComponents(jpanel1,new int[]{ 2,4 },new int[0]);
305
      return jpanel1;
306
   }
307
308
   public JPanel createPanel5()
309
   {
310
      JPanel jpanel1 = new JPanel();
311 43939 jjdelcerro
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
312
      CellConstraints cc = new CellConstraints();
313
      jpanel1.setLayout(formlayout1);
314
315
      txtGroupElement.setBackground(new Color(236,233,216));
316
      txtGroupElement.setEditable(false);
317
      txtGroupElement.setName("txtGroupElement");
318
      jpanel1.add(txtGroupElement,cc.xy(1,1));
319
320
      btnGroupElementInsert.setActionCommand("+");
321 43983 jjdelcerro
      btnGroupElementInsert.setIcon(loadImage("datos/devel/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.swing/org.gvsig.expressionevaluator.swing.impl/src/main/resources/org/gvsig/expressionevaluator/swing/impl/expressionbuilder-insert-text.png"));
322 43939 jjdelcerro
      btnGroupElementInsert.setName("btnGroupElementInsert");
323
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
324
      btnGroupElementInsert.setBorder(emptyborder1);
325
      jpanel1.add(btnGroupElementInsert,cc.xy(3,1));
326
327
      addFillComponents(jpanel1,new int[]{ 2 },new int[0]);
328
      return jpanel1;
329
   }
330
331 44098 jjdelcerro
   public JPanel createPanel6()
332 43939 jjdelcerro
   {
333
      JPanel jpanel1 = new JPanel();
334 43987 jjdelcerro
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:PREF:NONE");
335 43939 jjdelcerro
      CellConstraints cc = new CellConstraints();
336
      jpanel1.setLayout(formlayout1);
337
338
      btnSimpleElementInsert.setActionCommand("+");
339 43983 jjdelcerro
      btnSimpleElementInsert.setIcon(loadImage("datos/devel/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.swing/org.gvsig.expressionevaluator.swing.impl/src/main/resources/org/gvsig/expressionevaluator/swing/impl/expressionbuilder-insert-text.png"));
340 43939 jjdelcerro
      btnSimpleElementInsert.setName("btnSimpleElementInsert");
341
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
342
      btnSimpleElementInsert.setBorder(emptyborder1);
343 43987 jjdelcerro
      jpanel1.add(btnSimpleElementInsert,cc.xy(8,1));
344 43939 jjdelcerro
345 43983 jjdelcerro
      btnSimpleElementSortDown.setActionCommand("+");
346
      btnSimpleElementSortDown.setIcon(loadImage("datos/devel/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.swing/org.gvsig.expressionevaluator.swing.impl/src/main/resources/org/gvsig/expressionevaluator/swing/impl/expressionbuilder-sortdown.png"));
347
      btnSimpleElementSortDown.setName("btnSimpleElementSortDown");
348
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
349
      btnSimpleElementSortDown.setBorder(emptyborder2);
350 43987 jjdelcerro
      jpanel1.add(btnSimpleElementSortDown,cc.xy(6,1));
351 43983 jjdelcerro
352 43939 jjdelcerro
      btnSimpleElementSortUp.setActionCommand("+");
353
      btnSimpleElementSortUp.setIcon(loadImage("datos/devel/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.swing/org.gvsig.expressionevaluator.swing.impl/src/main/resources/org/gvsig/expressionevaluator/swing/impl/expressionbuilder-sortup.png"));
354
      btnSimpleElementSortUp.setName("btnSimpleElementSortUp");
355
      EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2);
356 43983 jjdelcerro
      btnSimpleElementSortUp.setBorder(emptyborder3);
357 43987 jjdelcerro
      jpanel1.add(btnSimpleElementSortUp,cc.xy(4,1));
358 43939 jjdelcerro
359 43983 jjdelcerro
      lblSimpleElementsMsg.setName("lblSimpleElementsMsg");
360
      jpanel1.add(lblSimpleElementsMsg,cc.xy(1,1));
361
362 43987 jjdelcerro
      btnSimpleElementTimeLimit.setActionCommand("+");
363
      btnSimpleElementTimeLimit.setIcon(loadImage("datos/devel/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.swing/org.gvsig.expressionevaluator.swing.impl/src/main/resources/org/gvsig/expressionevaluator/swing/impl/expressionbuilder-time-limit.png"));
364
      btnSimpleElementTimeLimit.setName("btnSimpleElementTimeLimit");
365
      EmptyBorder emptyborder4 = new EmptyBorder(2,2,2,2);
366
      btnSimpleElementTimeLimit.setBorder(emptyborder4);
367
      jpanel1.add(btnSimpleElementTimeLimit,cc.xy(2,1));
368
369
      addFillComponents(jpanel1,new int[]{ 3,5,7 },new int[0]);
370 43939 jjdelcerro
      return jpanel1;
371
   }
372
373 44098 jjdelcerro
   public JPanel createPanel7()
374 43939 jjdelcerro
   {
375
      JPanel jpanel1 = new JPanel();
376
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
377
      CellConstraints cc = new CellConstraints();
378
      jpanel1.setLayout(formlayout1);
379
380
      txtSimpleElementFilter.setName("txtSimpleElementFilter");
381
      jpanel1.add(txtSimpleElementFilter,cc.xy(1,1));
382
383
      btnSimpleElementFilter.setActionCommand("+");
384
      btnSimpleElementFilter.setIcon(loadImage("datos/devel/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.swing/org.gvsig.expressionevaluator.swing.impl/src/main/resources/org/gvsig/expressionevaluator/swing/impl/expressionbuilder-filter-values.png"));
385
      btnSimpleElementFilter.setName("btnSimpleElementFilter");
386
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
387
      btnSimpleElementFilter.setBorder(emptyborder1);
388
      jpanel1.add(btnSimpleElementFilter,cc.xy(3,1));
389
390
      addFillComponents(jpanel1,new int[]{ 2 },new int[0]);
391
      return jpanel1;
392
   }
393
394 44098 jjdelcerro
   public JPanel createPanel8()
395 43939 jjdelcerro
   {
396
      JPanel jpanel1 = new JPanel();
397 43983 jjdelcerro
      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,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
398 43939 jjdelcerro
      CellConstraints cc = new CellConstraints();
399
      jpanel1.setLayout(formlayout1);
400
401 43983 jjdelcerro
      pnlScriptEditorContainer.setName("pnlScriptEditorContainer");
402
      jpanel1.add(pnlScriptEditorContainer,cc.xy(2,2));
403
404 44098 jjdelcerro
      jpanel1.add(createPanel9(),cc.xy(2,4));
405 43983 jjdelcerro
      addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5 });
406 43939 jjdelcerro
      return jpanel1;
407
   }
408
409 44098 jjdelcerro
   public JPanel createPanel9()
410 43983 jjdelcerro
   {
411
      JPanel jpanel1 = new JPanel();
412
      FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE");
413
      CellConstraints cc = new CellConstraints();
414
      jpanel1.setLayout(formlayout1);
415
416
      cboPickerScripts.setName("cboPickerScripts");
417
      jpanel1.add(cboPickerScripts,cc.xy(1,1));
418
419
      btnPickerRemove.setActionCommand("+");
420
      btnPickerRemove.setName("btnPickerRemove");
421
      btnPickerRemove.setText("R");
422
      EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2);
423
      btnPickerRemove.setBorder(emptyborder1);
424
      jpanel1.add(btnPickerRemove,cc.xy(3,1));
425
426
      btnPickerSelectScript.setActionCommand("+");
427
      btnPickerSelectScript.setName("btnPickerSelectScript");
428
      btnPickerSelectScript.setText("S");
429
      EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2);
430
      btnPickerSelectScript.setBorder(emptyborder2);
431
      jpanel1.add(btnPickerSelectScript,cc.xy(5,1));
432
433
      addFillComponents(jpanel1,new int[]{ 2,4 },new int[0]);
434
      return jpanel1;
435
   }
436
437 43939 jjdelcerro
   /**
438
    * Initializer
439
    */
440
   protected void initializePanel()
441
   {
442
      setLayout(new BorderLayout());
443
      add(createPanel(), BorderLayout.CENTER);
444
   }
445
446
447
}