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 @ 47426
History | View | Annotate | Download (17.6 KB)
1 | 45537 | jolivas | 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 javax.swing.Box; |
||
11 | import javax.swing.ImageIcon; |
||
12 | import javax.swing.JButton; |
||
13 | 47184 | jjdelcerro | import javax.swing.JCheckBox; |
14 | 45537 | jolivas | import javax.swing.JFrame; |
15 | import javax.swing.JLabel; |
||
16 | import javax.swing.JPanel; |
||
17 | 46062 | omartinez | import javax.swing.JProgressBar; |
18 | 45537 | jolivas | 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 DefaultSearchPanelView2 extends JPanel |
||
26 | { |
||
27 | JTabbedPane tabSearchMode = new JTabbedPane(); |
||
28 | JButton btnRemoveAccumulatedFilter = new JButton(); |
||
29 | JButton btnAddAccumulatedFilter = new JButton(); |
||
30 | JButton btnViewAccumulatedFilter = new JButton(); |
||
31 | 47264 | jjdelcerro | JPanel pnlConditionField = new JPanel(); |
32 | 45537 | jolivas | JLabel lblExpressionDeBusqueda = new JLabel(); |
33 | JButton btnAdvancedExpression = new JButton(); |
||
34 | JButton btnAdvancedExpressionHistory = new JButton(); |
||
35 | JButton btnAdvancedExpressionBookmarks = new JButton(); |
||
36 | JTextArea txtAdvancedExpression = new JTextArea(); |
||
37 | 46062 | omartinez | JTabbedPane tabResults = new JTabbedPane(); |
38 | JTable tblResults = new JTable(); |
||
39 | JTable tblSearchPostProcessResults = new JTable(); |
||
40 | 45537 | jolivas | JButton btnClear = new JButton(); |
41 | JButton btnSearch = new JButton(); |
||
42 | JButton btnSearchPostProcess = new JButton(); |
||
43 | 47184 | jjdelcerro | JCheckBox chkUseSelection = new JCheckBox(); |
44 | 46062 | omartinez | JButton btnHistory = new JButton(); |
45 | JButton btnBookmarks = new JButton(); |
||
46 | JPanel pnlCfgActions = new JPanel(); |
||
47 | JProgressBar pgbStatus = new JProgressBar(); |
||
48 | JLabel lblStatusTitle = new JLabel(); |
||
49 | 45537 | jolivas | JLabel lblMsg = new JLabel(); |
50 | JPanel pnlActions = new JPanel(); |
||
51 | |||
52 | /**
|
||
53 | * Default constructor
|
||
54 | */
|
||
55 | public DefaultSearchPanelView2()
|
||
56 | { |
||
57 | initializePanel(); |
||
58 | } |
||
59 | |||
60 | /**
|
||
61 | * Adds fill components to empty cells in the first row and first column of the grid.
|
||
62 | * This ensures that the grid spacing will be the same as shown in the designer.
|
||
63 | * @param cols an array of column indices in the first row where fill components should be added.
|
||
64 | * @param rows an array of row indices in the first column where fill components should be added.
|
||
65 | */
|
||
66 | void addFillComponents( Container panel, int[] cols, int[] rows ) |
||
67 | { |
||
68 | Dimension filler = new Dimension(10,10); |
||
69 | |||
70 | boolean filled_cell_11 = false; |
||
71 | CellConstraints cc = new CellConstraints();
|
||
72 | if ( cols.length > 0 && rows.length > 0 ) |
||
73 | { |
||
74 | if ( cols[0] == 1 && rows[0] == 1 ) |
||
75 | { |
||
76 | /** add a rigid area */
|
||
77 | panel.add( Box.createRigidArea( filler ), cc.xy(1,1) ); |
||
78 | filled_cell_11 = true;
|
||
79 | } |
||
80 | } |
||
81 | |||
82 | for( int index = 0; index < cols.length; index++ ) |
||
83 | { |
||
84 | if ( cols[index] == 1 && filled_cell_11 ) |
||
85 | { |
||
86 | continue;
|
||
87 | } |
||
88 | panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) ); |
||
89 | } |
||
90 | |||
91 | for( int index = 0; index < rows.length; index++ ) |
||
92 | { |
||
93 | if ( rows[index] == 1 && filled_cell_11 ) |
||
94 | { |
||
95 | continue;
|
||
96 | } |
||
97 | panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) ); |
||
98 | } |
||
99 | |||
100 | } |
||
101 | |||
102 | /**
|
||
103 | * Helper method to load an image file from the CLASSPATH
|
||
104 | * @param imageName the package and name of the file to load relative to the CLASSPATH
|
||
105 | * @return an ImageIcon instance with the specified image file
|
||
106 | * @throws IllegalArgumentException if the image resource cannot be loaded.
|
||
107 | */
|
||
108 | public ImageIcon loadImage( String imageName ) |
||
109 | { |
||
110 | try
|
||
111 | { |
||
112 | ClassLoader classloader = getClass().getClassLoader();
|
||
113 | java.net.URL url = classloader.getResource( imageName ); |
||
114 | if ( url != null ) |
||
115 | { |
||
116 | ImageIcon icon = new ImageIcon( url ); |
||
117 | return icon;
|
||
118 | } |
||
119 | } |
||
120 | catch( Exception e ) |
||
121 | { |
||
122 | e.printStackTrace(); |
||
123 | } |
||
124 | throw new IllegalArgumentException( "Unable to load image: " + imageName ); |
||
125 | } |
||
126 | |||
127 | /**
|
||
128 | * Method for recalculating the component orientation for
|
||
129 | * right-to-left Locales.
|
||
130 | * @param orientation the component orientation to be applied
|
||
131 | */
|
||
132 | public void applyComponentOrientation( ComponentOrientation orientation ) |
||
133 | { |
||
134 | // Not yet implemented...
|
||
135 | // I18NUtils.applyComponentOrientation(this, orientation);
|
||
136 | super.applyComponentOrientation(orientation);
|
||
137 | } |
||
138 | |||
139 | public JPanel createPanel() |
||
140 | { |
||
141 | JPanel jpanel1 = new JPanel(); |
||
142 | 46079 | omartinez | 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"); |
143 | 45537 | jolivas | CellConstraints cc = new CellConstraints();
|
144 | jpanel1.setLayout(formlayout1); |
||
145 | |||
146 | tabSearchMode.setName("tabSearchMode");
|
||
147 | EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
||
148 | tabSearchMode.setBorder(emptyborder1); |
||
149 | tabSearchMode.setTabPlacement(JTabbedPane.BOTTOM);
|
||
150 | tabSearchMode.addTab("_Simplified",null,createPanel1()); |
||
151 | tabSearchMode.addTab("_Advanced",null,createPanel3()); |
||
152 | 46062 | omartinez | jpanel1.add(tabSearchMode,new CellConstraints(2,3,1,1,CellConstraints.FILL,CellConstraints.DEFAULT)); |
153 | 45537 | jolivas | |
154 | tabResults.setName("tabResults");
|
||
155 | 46062 | omartinez | tabResults.addTab("_normalResults",null,createPanel4()); |
156 | tabResults.addTab("_searchPostProcessResults",null,createPanel5()); |
||
157 | jpanel1.add(tabResults,new CellConstraints(2,6,1,1,CellConstraints.FILL,CellConstraints.FILL)); |
||
158 | 45537 | jolivas | |
159 | 46062 | omartinez | jpanel1.add(createPanel6(),new CellConstraints(2,4,1,1,CellConstraints.RIGHT,CellConstraints.DEFAULT)); |
160 | jpanel1.add(createPanel7(),new CellConstraints(2,2,1,1,CellConstraints.RIGHT,CellConstraints.DEFAULT)); |
||
161 | jpanel1.add(createPanel8(),cc.xy(2,8)); |
||
162 | 45537 | jolivas | addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5,6,7,8,9 }); |
163 | return jpanel1;
|
||
164 | } |
||
165 | |||
166 | public JPanel createPanel1() |
||
167 | { |
||
168 | JPanel jpanel1 = new JPanel(); |
||
169 | 47264 | jjdelcerro | 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"); |
170 | 45537 | jolivas | CellConstraints cc = new CellConstraints();
|
171 | jpanel1.setLayout(formlayout1); |
||
172 | |||
173 | 47264 | jjdelcerro | 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)); |
||
176 | 45537 | jolivas | |
177 | 47264 | jjdelcerro | 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 }); |
178 | 45537 | jolivas | return jpanel1;
|
179 | } |
||
180 | |||
181 | public JPanel createPanel2() |
||
182 | { |
||
183 | JPanel jpanel1 = new JPanel(); |
||
184 | 47184 | 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","CENTER:DEFAULT:NONE"); |
185 | 45537 | jolivas | CellConstraints cc = new CellConstraints();
|
186 | jpanel1.setLayout(formlayout1); |
||
187 | |||
188 | btnRemoveAccumulatedFilter.setActionCommand("...");
|
||
189 | 47426 | jjdelcerro | btnRemoveAccumulatedFilter.setIcon(loadImage("search-simplifiedcondition-clear-accumulate.png"));
|
190 | 45537 | jolivas | btnRemoveAccumulatedFilter.setName("btnRemoveAccumulatedFilter");
|
191 | btnRemoveAccumulatedFilter.setToolTipText("_Remove_accumulated_filter");
|
||
192 | EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
||
193 | btnRemoveAccumulatedFilter.setBorder(emptyborder1); |
||
194 | jpanel1.add(btnRemoveAccumulatedFilter,cc.xy(3,1)); |
||
195 | |||
196 | btnAddAccumulatedFilter.setActionCommand("...");
|
||
197 | 47426 | jjdelcerro | btnAddAccumulatedFilter.setIcon(loadImage("search-simplifiedcondition-add-accumulate.png"));
|
198 | 45537 | jolivas | btnAddAccumulatedFilter.setName("btnAddAccumulatedFilter");
|
199 | btnAddAccumulatedFilter.setToolTipText("_Accumulate_filter");
|
||
200 | EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
||
201 | btnAddAccumulatedFilter.setBorder(emptyborder2); |
||
202 | jpanel1.add(btnAddAccumulatedFilter,cc.xy(7,1)); |
||
203 | |||
204 | btnViewAccumulatedFilter.setActionCommand("...");
|
||
205 | 47426 | jjdelcerro | btnViewAccumulatedFilter.setIcon(loadImage("search-simplifiedcondition-edit-accumulate.png"));
|
206 | 45537 | jolivas | btnViewAccumulatedFilter.setName("btnViewAccumulatedFilter");
|
207 | btnViewAccumulatedFilter.setToolTipText("_View_accumulated_filter");
|
||
208 | EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
||
209 | btnViewAccumulatedFilter.setBorder(emptyborder3); |
||
210 | jpanel1.add(btnViewAccumulatedFilter,cc.xy(5,1)); |
||
211 | |||
212 | addFillComponents(jpanel1,new int[]{ 1,2,4,6 },new int[]{ 1 }); |
||
213 | return jpanel1;
|
||
214 | } |
||
215 | |||
216 | public JPanel createPanel3() |
||
217 | { |
||
218 | JPanel jpanel1 = new JPanel(); |
||
219 | 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"); |
||
220 | CellConstraints cc = new CellConstraints();
|
||
221 | jpanel1.setLayout(formlayout1); |
||
222 | |||
223 | lblExpressionDeBusqueda.setName("lblExpressionDeBusqueda");
|
||
224 | lblExpressionDeBusqueda.setText("_Insert_a_search_expression");
|
||
225 | jpanel1.add(lblExpressionDeBusqueda,cc.xy(2,2)); |
||
226 | |||
227 | btnAdvancedExpression.setActionCommand("...");
|
||
228 | btnAdvancedExpression.setName("btnAdvancedExpression");
|
||
229 | EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
||
230 | btnAdvancedExpression.setBorder(emptyborder1); |
||
231 | jpanel1.add(btnAdvancedExpression,new CellConstraints(4,4,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
||
232 | |||
233 | btnAdvancedExpressionHistory.setActionCommand("...");
|
||
234 | btnAdvancedExpressionHistory.setName("btnAdvancedExpressionHistory");
|
||
235 | EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
||
236 | btnAdvancedExpressionHistory.setBorder(emptyborder2); |
||
237 | jpanel1.add(btnAdvancedExpressionHistory,new CellConstraints(6,4,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
||
238 | |||
239 | btnAdvancedExpressionBookmarks.setActionCommand("...");
|
||
240 | btnAdvancedExpressionBookmarks.setName("btnAdvancedExpressionBookmarks");
|
||
241 | EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
||
242 | btnAdvancedExpressionBookmarks.setBorder(emptyborder3); |
||
243 | jpanel1.add(btnAdvancedExpressionBookmarks,new CellConstraints(8,4,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
||
244 | |||
245 | txtAdvancedExpression.setName("txtAdvancedExpression");
|
||
246 | 47184 | jjdelcerro | txtAdvancedExpression.setSelectionEnd(1720);
|
247 | txtAdvancedExpression.setSelectionStart(1720);
|
||
248 | 46079 | omartinez | txtAdvancedExpression.setText("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
|
249 | 45537 | jolivas | JScrollPane jscrollpane1 = new JScrollPane(); |
250 | jscrollpane1.setViewportView(txtAdvancedExpression); |
||
251 | jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
||
252 | jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
||
253 | jpanel1.add(jscrollpane1,cc.xy(2,4)); |
||
254 | |||
255 | addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9 },new int[]{ 1,2,3,4,5 }); |
||
256 | return jpanel1;
|
||
257 | } |
||
258 | |||
259 | public JPanel createPanel4() |
||
260 | { |
||
261 | JPanel jpanel1 = new JPanel(); |
||
262 | 46062 | omartinez | 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"); |
263 | 45537 | jolivas | CellConstraints cc = new CellConstraints();
|
264 | jpanel1.setLayout(formlayout1); |
||
265 | |||
266 | 46062 | omartinez | tblResults.setName("tblResults");
|
267 | JScrollPane jscrollpane1 = new JScrollPane(); |
||
268 | jscrollpane1.setViewportView(tblResults); |
||
269 | jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
||
270 | jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
||
271 | jpanel1.add(jscrollpane1,cc.xy(2,2)); |
||
272 | |||
273 | addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3 }); |
||
274 | return jpanel1;
|
||
275 | } |
||
276 | |||
277 | public JPanel createPanel5() |
||
278 | { |
||
279 | JPanel jpanel1 = new JPanel(); |
||
280 | 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"); |
||
281 | CellConstraints cc = new CellConstraints();
|
||
282 | jpanel1.setLayout(formlayout1); |
||
283 | |||
284 | tblSearchPostProcessResults.setName("tblSearchPostProcessResults");
|
||
285 | JScrollPane jscrollpane1 = new JScrollPane(); |
||
286 | jscrollpane1.setViewportView(tblSearchPostProcessResults); |
||
287 | jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
||
288 | jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
||
289 | jpanel1.add(jscrollpane1,cc.xy(2,2)); |
||
290 | |||
291 | addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3 }); |
||
292 | return jpanel1;
|
||
293 | } |
||
294 | |||
295 | public JPanel createPanel6() |
||
296 | { |
||
297 | JPanel jpanel1 = new JPanel(); |
||
298 | 47184 | jjdelcerro | FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:10PX:NONE","CENTER:DEFAULT:NONE"); |
299 | 46062 | omartinez | CellConstraints cc = new CellConstraints();
|
300 | jpanel1.setLayout(formlayout1); |
||
301 | |||
302 | 45537 | jolivas | btnClear.setActionCommand("Limpiar");
|
303 | btnClear.setName("btnClear");
|
||
304 | btnClear.setText("_Clear");
|
||
305 | 47184 | jjdelcerro | jpanel1.add(btnClear,cc.xy(3,1)); |
306 | 45537 | jolivas | |
307 | btnSearch.setActionCommand("Buscar");
|
||
308 | btnSearch.setName("btnSearch");
|
||
309 | btnSearch.setText("_Search");
|
||
310 | 47184 | jjdelcerro | jpanel1.add(btnSearch,cc.xy(5,1)); |
311 | 45537 | jolivas | |
312 | btnSearchPostProcess.setActionCommand("Buscar");
|
||
313 | btnSearchPostProcess.setName("btnSearchPostProcess");
|
||
314 | btnSearchPostProcess.setText("_PostProcess");
|
||
315 | 47184 | jjdelcerro | jpanel1.add(btnSearchPostProcess,cc.xy(7,1)); |
316 | 45537 | jolivas | |
317 | 47184 | jjdelcerro | chkUseSelection.setActionCommand("_Use_selection");
|
318 | chkUseSelection.setName("chkUseSelection");
|
||
319 | chkUseSelection.setText("_Use_selection");
|
||
320 | jpanel1.add(chkUseSelection,cc.xy(1,1)); |
||
321 | |||
322 | addFillComponents(jpanel1,new int[]{ 2,4,6,8 },new int[0]); |
||
323 | 45537 | jolivas | return jpanel1;
|
324 | } |
||
325 | |||
326 | 46062 | omartinez | public JPanel createPanel7() |
327 | 45537 | jolivas | { |
328 | JPanel jpanel1 = new JPanel(); |
||
329 | 46062 | omartinez | 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"); |
330 | 45537 | jolivas | CellConstraints cc = new CellConstraints();
|
331 | jpanel1.setLayout(formlayout1); |
||
332 | |||
333 | btnHistory.setActionCommand("...");
|
||
334 | btnHistory.setName("btnHistory");
|
||
335 | EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
||
336 | btnHistory.setBorder(emptyborder1); |
||
337 | jpanel1.add(btnHistory,cc.xy(3,1)); |
||
338 | |||
339 | btnBookmarks.setActionCommand("...");
|
||
340 | btnBookmarks.setName("btnBookmarks");
|
||
341 | EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
||
342 | btnBookmarks.setBorder(emptyborder2); |
||
343 | jpanel1.add(btnBookmarks,cc.xy(5,1)); |
||
344 | |||
345 | 46062 | omartinez | pnlCfgActions.setName("pnlCfgActions");
|
346 | pnlCfgActions.setOpaque(false);
|
||
347 | jpanel1.add(pnlCfgActions,cc.xy(7,1)); |
||
348 | |||
349 | addFillComponents(jpanel1,new int[]{ 1,2,4,6,8 },new int[]{ 1 }); |
||
350 | 45537 | jolivas | return jpanel1;
|
351 | } |
||
352 | |||
353 | 46062 | omartinez | public JPanel createPanel8() |
354 | 45996 | omartinez | { |
355 | 46062 | omartinez | JPanel jpanel1 = new JPanel(); |
356 | 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"); |
||
357 | 45996 | omartinez | CellConstraints cc = new CellConstraints();
|
358 | 46062 | omartinez | jpanel1.setLayout(formlayout1); |
359 | 45996 | omartinez | |
360 | 46062 | omartinez | pgbStatus.setName("pgbStatus");
|
361 | jpanel1.add(pgbStatus,cc.xy(1,1)); |
||
362 | 45996 | omartinez | |
363 | 46062 | omartinez | lblStatusTitle.setName("lblStatusTitle");
|
364 | jpanel1.add(lblStatusTitle,cc.xy(3,1)); |
||
365 | 45996 | omartinez | |
366 | 46062 | omartinez | lblMsg.setName("lblMsg");
|
367 | jpanel1.add(lblMsg,cc.xy(5,1)); |
||
368 | 45996 | omartinez | |
369 | 46062 | omartinez | pnlActions.setName("pnlActions");
|
370 | jpanel1.add(pnlActions,cc.xy(6,1)); |
||
371 | 45996 | omartinez | |
372 | 46062 | omartinez | addFillComponents(jpanel1,new int[]{ 2,4 },new int[0]); |
373 | return jpanel1;
|
||
374 | 45996 | omartinez | } |
375 | |||
376 | 45537 | jolivas | /**
|
377 | * Initializer
|
||
378 | */
|
||
379 | protected void initializePanel() |
||
380 | { |
||
381 | setLayout(new BorderLayout()); |
||
382 | add(createPanel(), BorderLayout.CENTER);
|
||
383 | } |
||
384 | |||
385 | |||
386 | } |