Revision 47264 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

View differences:

DefaultSearchPanelView2.java
11 11
import javax.swing.ImageIcon;
12 12
import javax.swing.JButton;
13 13
import javax.swing.JCheckBox;
14
import javax.swing.JComboBox;
15 14
import javax.swing.JFrame;
16 15
import javax.swing.JLabel;
17 16
import javax.swing.JPanel;
......
26 25
public class DefaultSearchPanelView2 extends JPanel
27 26
{
28 27
   JTabbedPane tabSearchMode = new JTabbedPane();
29
   JComboBox cboValue1 = new JComboBox();
30
   JComboBox cboValue2 = new JComboBox();
31
   JComboBox cboValue3 = new JComboBox();
32
   JComboBox cboValue4 = new JComboBox();
33
   JLabel lblRelationalOperator1 = new JLabel();
34
   JLabel lblRelationalOperator2 = new JLabel();
35
   JLabel lblRelationalOperator3 = new JLabel();
36
   JLabel lblRelationalOperator4 = new JLabel();
37
   JLabel lblLogicalOperators1 = new JLabel();
38
   JLabel lblLogicalOperators2 = new JLabel();
39
   JLabel lblLogicalOperators3 = new JLabel();
40
   JLabel lblField1 = new JLabel();
41
   JLabel lblField2 = new JLabel();
42
   JLabel lblField3 = new JLabel();
43
   JLabel lblField4 = new JLabel();
44
   JLabel lblExtraFields1 = new JLabel();
45
   JLabel lblExtraFields2 = new JLabel();
46
   JLabel lblExtraFields3 = new JLabel();
47
   JLabel lblExtraFields4 = new JLabel();
48
   JLabel lblNull1 = new JLabel();
49
   JLabel lblNull2 = new JLabel();
50
   JLabel lblNull3 = new JLabel();
51
   JLabel lblNull4 = new JLabel();
52 28
   JButton btnRemoveAccumulatedFilter = new JButton();
53 29
   JButton btnAddAccumulatedFilter = new JButton();
54 30
   JButton btnViewAccumulatedFilter = new JButton();
31
   JPanel pnlConditionField = new JPanel();
55 32
   JLabel lblExpressionDeBusqueda = new JLabel();
56 33
   JButton btnAdvancedExpression = new JButton();
57 34
   JButton btnAdvancedExpressionHistory = new JButton();
......
189 166
   public JPanel createPanel1()
190 167
   {
191 168
      JPanel jpanel1 = new JPanel();
192
      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");
169
      FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(0.2),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(0.2),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(0.2),FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");
193 170
      CellConstraints cc = new CellConstraints();
194 171
      jpanel1.setLayout(formlayout1);
195 172

  
196
      cboValue1.setEditable(true);
197
      cboValue1.setName("cboValue1");
198
      cboValue1.setRequestFocusEnabled(false);
199
      jpanel1.add(cboValue1,cc.xywh(2,6,3,1));
173
      jpanel1.add(createPanel2(),new CellConstraints(2,4,20,1,CellConstraints.RIGHT,CellConstraints.DEFAULT));
174
      pnlConditionField.setName("pnlConditionField");
175
      jpanel1.add(pnlConditionField,cc.xywh(2,2,20,1));
200 176

  
201
      cboValue2.setEditable(true);
202
      cboValue2.setName("cboValue2");
203
      cboValue2.setRequestFocusEnabled(false);
204
      jpanel1.add(cboValue2,new CellConstraints(8,6,3,1,CellConstraints.FILL,CellConstraints.DEFAULT));
205

  
206
      cboValue3.setEditable(true);
207
      cboValue3.setName("cboValue3");
208
      cboValue3.setRequestFocusEnabled(false);
209
      jpanel1.add(cboValue3,cc.xywh(14,6,3,1));
210

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

  
216
      lblRelationalOperator1.setName("lblRelationalOperator1");
217
      lblRelationalOperator1.setText("Igual");
218
      lblRelationalOperator1.setHorizontalAlignment(JLabel.CENTER);
219
      jpanel1.add(lblRelationalOperator1,cc.xy(2,4));
220

  
221
      lblRelationalOperator2.setName("lblRelationalOperator2");
222
      lblRelationalOperator2.setText("Igual");
223
      lblRelationalOperator2.setHorizontalAlignment(JLabel.CENTER);
224
      jpanel1.add(lblRelationalOperator2,cc.xy(8,4));
225

  
226
      lblRelationalOperator3.setName("lblRelationalOperator3");
227
      lblRelationalOperator3.setText("Igual");
228
      lblRelationalOperator3.setHorizontalAlignment(JLabel.CENTER);
229
      jpanel1.add(lblRelationalOperator3,cc.xy(14,4));
230

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

  
236
      lblLogicalOperators1.setName("lblLogicalOperators1");
237
      lblLogicalOperators1.setText("WWWWW");
238
      lblLogicalOperators1.setHorizontalAlignment(JLabel.CENTER);
239
      jpanel1.add(lblLogicalOperators1,cc.xy(6,2));
240

  
241
      lblLogicalOperators2.setName("lblLogicalOperators2");
242
      lblLogicalOperators2.setText("WWWWW");
243
      lblLogicalOperators2.setHorizontalAlignment(JLabel.CENTER);
244
      jpanel1.add(lblLogicalOperators2,cc.xy(12,2));
245

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

  
251
      lblField1.setName("lblField1");
252
      lblField1.setHorizontalAlignment(JLabel.CENTER);
253
      jpanel1.add(lblField1,cc.xy(2,2));
254

  
255
      lblField2.setName("lblField2");
256
      lblField2.setHorizontalAlignment(JLabel.CENTER);
257
      jpanel1.add(lblField2,cc.xy(8,2));
258

  
259
      lblField3.setName("lblField3");
260
      lblField3.setHorizontalAlignment(JLabel.CENTER);
261
      jpanel1.add(lblField3,cc.xy(14,2));
262

  
263
      lblField4.setName("lblField4");
264
      lblField4.setHorizontalAlignment(JLabel.CENTER);
265
      jpanel1.add(lblField4,cc.xy(20,2));
266

  
267
      lblExtraFields1.setIcon(loadImage("src/main/resources/org/gvsig/fmap/dal/swing/impl/searchpanel/featurestore-column.png"));
268
      lblExtraFields1.setName("lblExtraFields1");
269
      jpanel1.add(lblExtraFields1,cc.xy(4,2));
270

  
271
      lblExtraFields2.setIcon(loadImage("src/main/resources/org/gvsig/fmap/dal/swing/impl/searchpanel/featurestore-column.png"));
272
      lblExtraFields2.setName("lblExtraFields2");
273
      jpanel1.add(lblExtraFields2,cc.xy(10,2));
274

  
275
      lblExtraFields3.setIcon(loadImage("src/main/resources/org/gvsig/fmap/dal/swing/impl/searchpanel/featurestore-column.png"));
276
      lblExtraFields3.setName("lblExtraFields3");
277
      jpanel1.add(lblExtraFields3,cc.xy(16,2));
278

  
279
      lblExtraFields4.setIcon(loadImage("src/main/resources/org/gvsig/fmap/dal/swing/impl/searchpanel/featurestore-column.png"));
280
      lblExtraFields4.setName("lblExtraFields4");
281
      jpanel1.add(lblExtraFields4,cc.xy(21,2));
282

  
283
      lblNull1.setName("lblNull1");
284
      lblNull1.setHorizontalAlignment(JLabel.CENTER);
285
      jpanel1.add(lblNull1,cc.xy(4,4));
286

  
287
      lblNull2.setName("lblNull2");
288
      lblNull2.setHorizontalAlignment(JLabel.CENTER);
289
      jpanel1.add(lblNull2,cc.xy(10,4));
290

  
291
      lblNull3.setName("lblNull3");
292
      lblNull3.setHorizontalAlignment(JLabel.CENTER);
293
      jpanel1.add(lblNull3,cc.xy(16,4));
294

  
295
      lblNull4.setName("lblNull4");
296
      lblNull4.setHorizontalAlignment(JLabel.CENTER);
297
      jpanel1.add(lblNull4,cc.xy(21,4));
298

  
299
      jpanel1.add(createPanel2(),new CellConstraints(2,8,20,1,CellConstraints.RIGHT,CellConstraints.DEFAULT));
300
      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 });
177
      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 });
301 178
      return jpanel1;
302 179
   }
303 180

  

Also available in: Unified diff