Revision 44603 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 | ||
---|---|---|
7 | 7 |
import java.awt.ComponentOrientation; |
8 | 8 |
import java.awt.Container; |
9 | 9 |
import java.awt.Dimension; |
10 |
import java.awt.event.WindowAdapter; |
|
11 |
import java.awt.event.WindowEvent; |
|
10 | 12 |
import javax.swing.Box; |
11 | 13 |
import javax.swing.ImageIcon; |
12 | 14 |
import javax.swing.JButton; |
... | ... | |
64 | 66 |
} |
65 | 67 |
|
66 | 68 |
/** |
69 |
* Main method for panel |
|
70 |
*/ |
|
71 |
public static void main(String[] args) |
|
72 |
{ |
|
73 |
JFrame frame = new JFrame(); |
|
74 |
frame.setSize(600, 400); |
|
75 |
frame.setLocation(100, 100); |
|
76 |
frame.getContentPane().add(new DefaultSearchPanelView()); |
|
77 |
frame.setVisible(true); |
|
78 |
|
|
79 |
frame.addWindowListener( new WindowAdapter() |
|
80 |
{ |
|
81 |
public void windowClosing( WindowEvent evt ) |
|
82 |
{ |
|
83 |
System.exit(0); |
|
84 |
} |
|
85 |
}); |
|
86 |
} |
|
87 |
|
|
88 |
/** |
|
67 | 89 |
* Adds fill components to empty cells in the first row and first column of the grid. |
68 | 90 |
* This ensures that the grid spacing will be the same as shown in the designer. |
69 | 91 |
* @param cols an array of column indices in the first row where fill components should be added. |
... | ... | |
153 | 175 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
154 | 176 |
tabSearchMode.setBorder(emptyborder1); |
155 | 177 |
tabSearchMode.setTabPlacement(JTabbedPane.BOTTOM); |
156 |
tabSearchMode.addTab("Simplificada",null,createPanel1());
|
|
157 |
tabSearchMode.addTab("Avanzada",null,createPanel2());
|
|
178 |
tabSearchMode.addTab("_Simplified",null,createPanel1());
|
|
179 |
tabSearchMode.addTab("_Advanced",null,createPanel2());
|
|
158 | 180 |
jpanel1.add(tabSearchMode,cc.xy(2,3)); |
159 | 181 |
|
160 | 182 |
tblResults.setName("tblResults"); |
... | ... | |
280 | 302 |
jpanel1.add(txtAdvancedExpression,cc.xy(2,4)); |
281 | 303 |
|
282 | 304 |
lblExpressionDeBusqueda.setName("lblExpressionDeBusqueda"); |
283 |
lblExpressionDeBusqueda.setText("Introduzca una expresion de busqueda");
|
|
305 |
lblExpressionDeBusqueda.setText("_Insert_a_search_expression");
|
|
284 | 306 |
jpanel1.add(lblExpressionDeBusqueda,cc.xy(2,2)); |
285 | 307 |
|
286 | 308 |
btnAdvancedExpression.setActionCommand("..."); |
... | ... | |
314 | 336 |
|
315 | 337 |
btnSearch.setActionCommand("Buscar"); |
316 | 338 |
btnSearch.setName("btnSearch"); |
317 |
btnSearch.setText("Buscar");
|
|
339 |
btnSearch.setText("_Search");
|
|
318 | 340 |
jpanel1.add(btnSearch,cc.xy(4,1)); |
319 | 341 |
|
320 | 342 |
btnClear.setActionCommand("Limpiar"); |
321 | 343 |
btnClear.setName("btnClear"); |
322 |
btnClear.setText("Limpiar");
|
|
344 |
btnClear.setText("_Clear");
|
|
323 | 345 |
jpanel1.add(btnClear,cc.xy(2,1)); |
324 | 346 |
|
325 | 347 |
addFillComponents(jpanel1,new int[]{ 1,3 },new int[]{ 1 }); |
Also available in: Unified diff