Revision 44351 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
DefaultSearchPanelView.java | ||
---|---|---|
48 | 48 |
JButton btnAdvancedExpression = new JButton(); |
49 | 49 |
JButton btnAdvancedExpressionHistory = new JButton(); |
50 | 50 |
JButton btnAdvancedExpressionBookmarks = new JButton(); |
51 |
JTable tblResults = new JTable(); |
|
51 | 52 |
JButton btnSearch = new JButton(); |
52 | 53 |
JButton btnClear = new JButton(); |
53 |
JTable tblResults = new JTable(); |
|
54 | 54 |
JLabel lblMsg = new JLabel(); |
55 | 55 |
JPanel pnlActions = new JPanel(); |
56 |
JPanel pnlCfgActions = new JPanel(); |
|
56 | 57 |
|
57 | 58 |
/** |
58 | 59 |
* Default constructor |
... | ... | |
144 | 145 |
public JPanel createPanel() |
145 | 146 |
{ |
146 | 147 |
JPanel jpanel1 = new JPanel(); |
147 |
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:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE"); |
|
148 |
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");
|
|
148 | 149 |
CellConstraints cc = new CellConstraints(); |
149 | 150 |
jpanel1.setLayout(formlayout1); |
150 | 151 |
|
... | ... | |
154 | 155 |
tabSearchMode.setTabPlacement(JTabbedPane.BOTTOM); |
155 | 156 |
tabSearchMode.addTab("Simplificada",null,createPanel1()); |
156 | 157 |
tabSearchMode.addTab("Avanzada",null,createPanel2()); |
157 |
jpanel1.add(tabSearchMode,cc.xy(2,2));
|
|
158 |
jpanel1.add(tabSearchMode,cc.xy(2,3));
|
|
158 | 159 |
|
159 |
jpanel1.add(createPanel3(),cc.xy(2,3)); |
|
160 | 160 |
tblResults.setName("tblResults"); |
161 | 161 |
JScrollPane jscrollpane1 = new JScrollPane(); |
162 | 162 |
jscrollpane1.setViewportView(tblResults); |
163 | 163 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
164 | 164 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
165 |
jpanel1.add(jscrollpane1,cc.xy(2,5));
|
|
165 |
jpanel1.add(jscrollpane1,cc.xy(2,6));
|
|
166 | 166 |
|
167 |
jpanel1.add(createPanel4(),cc.xy(2,7)); |
|
168 |
addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5,6,7,8 }); |
|
167 |
jpanel1.add(createPanel3(),cc.xy(2,4)); |
|
168 |
jpanel1.add(createPanel4(),cc.xy(2,8)); |
|
169 |
jpanel1.add(createPanel5(),cc.xy(2,2)); |
|
170 |
addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5,6,7,8,9 }); |
|
169 | 171 |
return jpanel1; |
170 | 172 |
} |
171 | 173 |
|
... | ... | |
341 | 343 |
return jpanel1; |
342 | 344 |
} |
343 | 345 |
|
346 |
public JPanel createPanel5() |
|
347 |
{ |
|
348 |
JPanel jpanel1 = new JPanel(); |
|
349 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
|
350 |
CellConstraints cc = new CellConstraints(); |
|
351 |
jpanel1.setLayout(formlayout1); |
|
352 |
|
|
353 |
pnlCfgActions.setName("pnlCfgActions"); |
|
354 |
pnlCfgActions.setOpaque(false); |
|
355 |
jpanel1.add(pnlCfgActions,cc.xy(2,1)); |
|
356 |
|
|
357 |
addFillComponents(jpanel1,new int[]{ 1 },new int[]{ 1 }); |
|
358 |
return jpanel1; |
|
359 |
} |
|
360 |
|
|
344 | 361 |
/** |
345 | 362 |
* Initializer |
346 | 363 |
*/ |
Also available in: Unified diff