Revision 10787 branches/F2/extensions/extJCRS/src/org/gvsig/crs/gui/panels/wizard/DefinirDatum.java
DefinirDatum.java | ||
---|---|---|
17 | 17 |
import javax.swing.JRadioButton; |
18 | 18 |
import javax.swing.JTextField; |
19 | 19 |
|
20 |
import com.iver.andami.PluginServices; |
|
20 | 21 |
import com.iver.utiles.swing.JComboBox; |
21 | 22 |
|
22 | 23 |
/** |
... | ... | |
66 | 67 |
|
67 | 68 |
super(); |
68 | 69 |
//TODO:Agregar un icono en gvSig |
69 |
//ImageIcon imodify = new ImageIcon(AddLayer.class.getClassLoader().getResource("images/nombre_imagen.png"));
|
|
70 |
//ImageIcon imodify = new ImageIcon(AddLayer.class.getClassLoader().getResource("images/search.png"));
|
|
70 | 71 |
imodify = new ImageIcon("C:/gvSIGHead/extJCRS/images/search.png"); |
71 | 72 |
this.setLayout(new BorderLayout()); |
72 | 73 |
this.setBorder(BorderFactory.createEmptyBorder(4,4,4,4)); |
... | ... | |
84 | 85 |
JPanel pMeridian=new JPanel(); |
85 | 86 |
pMain.setLayout(new BorderLayout()); |
86 | 87 |
|
87 |
//TODO: Comprobar que funcionan las traducciones correctamente |
|
88 |
|
|
89 |
/*pMain.setBorder(BorderFactory.createTitledBorder(PluginServices.getText(this,"jpDat_nDatum"))); |
|
90 |
pElipsoide.setBorder(BorderFactory.createTitledBorder(PluginServices.getText(this,"jpDat_nElipsoide"))); |
|
91 |
pMeridian.setBorder(BorderFactory.createTitledBorder(PluginServices.getText(this,"jpDat_nMeridian")));*/ |
|
92 |
|
|
93 |
pMain.setBorder(BorderFactory.createTitledBorder("Datum ")); |
|
94 |
pElipsoide.setBorder(BorderFactory.createTitledBorder("Elipsoide ")); |
|
95 |
pMeridian.setBorder(BorderFactory.createTitledBorder("Meridiano ")); |
|
96 |
|
|
88 |
pMain.setBorder(BorderFactory.createTitledBorder(PluginServices.getText(this,"Dat_nDatum"))); |
|
89 |
pElipsoide.setBorder(BorderFactory.createTitledBorder(PluginServices.getText(this,"Dat_nElipsoide"))); |
|
90 |
pMeridian.setBorder(BorderFactory.createTitledBorder(PluginServices.getText(this,"Dat_nMeridian"))); |
|
97 | 91 |
/*Panel que contiene los datos del Datum*/ |
98 | 92 |
pDatum.setLayout(new GridBagLayout()); |
99 | 93 |
GridBagConstraints z=new GridBagConstraints(); |
... | ... | |
205 | 199 |
public JButton getBtnImportDatum() { |
206 | 200 |
if(btnImportDatum==null){ |
207 | 201 |
btnImportDatum=new JButton(); |
208 |
//TODO: Comprobar que funcionan las traducciones |
|
209 |
//btnImportDatum.setText(PluginServices.getText(this, "jpDat_Importar")); |
|
210 |
btnImportDatum.setText("Importar"); |
|
202 |
btnImportDatum.setText(PluginServices.getText(this, "Dat_Importar")); |
|
211 | 203 |
btnImportDatum.setIcon(imodify); |
212 | 204 |
btnImportDatum.addActionListener(this); |
213 | 205 |
} |
... | ... | |
220 | 212 |
public JButton getBtnImportElipsoide() { |
221 | 213 |
if(btnImportElipsoide==null){ |
222 | 214 |
btnImportElipsoide=new JButton(); |
223 |
//TODO: Comprobar que funcionan las traducciones |
|
224 |
//btnImportElipsoide.setText(PluginServices.getText(this, "jpDat_Importar")); |
|
225 |
btnImportElipsoide.setText("Importar"); |
|
215 |
btnImportElipsoide.setText(PluginServices.getText(this, "Dat_Importar")); |
|
226 | 216 |
btnImportElipsoide.setIcon(imodify); |
227 | 217 |
btnImportElipsoide.addActionListener(this); |
228 | 218 |
} |
... | ... | |
235 | 225 |
public JButton getBtnImportMeridian() { |
236 | 226 |
if(btnImportMeridian==null){ |
237 | 227 |
btnImportMeridian=new JButton(); |
238 |
//TODO: Comprobar que funcionan las traducciones |
|
239 |
//btnImportMeridian.setText(PluginServices.getText(this, "jpDat_Importar")); |
|
240 |
btnImportMeridian.setText("Importar"); |
|
228 |
btnImportMeridian.setText(PluginServices.getText(this, "Dat_Importar")); |
|
241 | 229 |
btnImportMeridian.setIcon(imodify); |
242 | 230 |
btnImportMeridian.addActionListener(this); |
243 | 231 |
} |
... | ... | |
317 | 305 |
public JLabel getLblDatum() { |
318 | 306 |
if (lblDatum==null){ |
319 | 307 |
lblDatum=new JLabel(); |
320 |
//TODO: Comprobar que funcionan las traducciones |
|
321 |
//lblDatum.setText(PluginServices.getText(this,"jpDat_Datum")); |
|
322 |
lblDatum.setText("Introduce el Datum"); |
|
308 |
lblDatum.setText(PluginServices.getText(this,"Dat_Datum")); |
|
323 | 309 |
} |
324 | 310 |
return lblDatum; |
325 | 311 |
} |
... | ... | |
330 | 316 |
public JLabel getLblElipsoide() { |
331 | 317 |
if (lblElipsoide==null){ |
332 | 318 |
lblElipsoide=new JLabel(); |
333 |
//TODO: Comprobar que funcionan las traducciones |
|
334 |
//lblElipsoide.setText(PluginServices.getText(this,"jpDat_Elips")); |
|
335 |
lblElipsoide.setText("Introduce el Elipsoide"); |
|
319 |
lblElipsoide.setText(PluginServices.getText(this,"Dat_Elips")); |
|
320 |
//lblElipsoide.setText("Introduce el Elipsoide"); |
|
336 | 321 |
} |
337 | 322 |
return lblElipsoide; |
338 | 323 |
} |
... | ... | |
344 | 329 |
public JLabel getLblLong() { |
345 | 330 |
if (lblLong==null){ |
346 | 331 |
lblLong=new JLabel(); |
347 |
//TODO: Comprobar que funcionan las traducciones |
|
348 |
//lblLong.setText(PluginServices.getText(this,"jpDat_Long")); |
|
349 |
lblLong.setText("Longitud "); |
|
332 |
lblLong.setText(PluginServices.getText(this,"Dat_Long")); |
|
350 | 333 |
} |
351 | 334 |
return lblLong; |
352 | 335 |
} |
... | ... | |
357 | 340 |
public JLabel getLblMeridian() { |
358 | 341 |
if (lblMeridian==null){ |
359 | 342 |
lblMeridian=new JLabel(); |
360 |
//TODO: Comprobar que funcionan las traducciones |
|
361 |
//lblMeridian.setText(PluginServices.getText(this,"jpDat_Meridian")); |
|
362 |
lblMeridian.setText("Introduce el Meridiano"); |
|
343 |
lblMeridian.setText(PluginServices.getText(this,"Dat_Meridian")); |
|
363 | 344 |
} |
364 | 345 |
return lblMeridian; |
365 | 346 |
} |
... | ... | |
372 | 353 |
public JRadioButton getRbInvF() { |
373 | 354 |
if(rbInvF==null){ |
374 | 355 |
rbInvF=new JRadioButton(); |
375 |
//TODO: Comprobar que funcionan las traducciones |
|
376 |
//rbInvF.setToolTipText(PluginServices.getText(this,"jpDat_InvFToolTipText")); |
|
377 |
rbInvF.setToolTipText("Fijar el par?metro Inverse Flat"); |
|
378 |
//rbInvF.setText(PluginServices.getText(this,"jpDat_InvF")); |
|
379 |
rbInvF.setText("Inverse Flat"); |
|
356 |
rbInvF.setToolTipText(PluginServices.getText(this,"Dat_InvFToolTipText")); |
|
357 |
rbInvF.setText(PluginServices.getText(this,"Dat_InvF")); |
|
380 | 358 |
rbInvF.addActionListener(this); |
381 | 359 |
} |
382 | 360 |
return rbInvF; |
... | ... | |
389 | 367 |
public JRadioButton getRbSemMay() { |
390 | 368 |
if(rbSemMay==null){ |
391 | 369 |
rbSemMay=new JRadioButton(); |
392 |
// TODO: Comprobar que funcionan las traducciones |
|
393 |
//rbSemMay.setToolTipText(PluginServices.getText(this,"jpDat_SemMayToolTipText")); |
|
394 |
rbSemMay.setToolTipText("Fijar el par?metro Semieje Mayor"); |
|
395 |
//rbSemMay.setText(PluginServices.getText(this,"jpDat_SemMay")); |
|
396 |
rbSemMay.setText("Semieje Mayor"); |
|
370 |
rbSemMay.setToolTipText(PluginServices.getText(this,"Dat_SemMayToolTipText")); |
|
371 |
rbSemMay.setText(PluginServices.getText(this,"Dat_SemMay")); |
|
397 | 372 |
rbSemMay.addActionListener(this); |
398 | 373 |
} |
399 | 374 |
return rbSemMay; |
... | ... | |
406 | 381 |
public JRadioButton getRbSemMen() { |
407 | 382 |
if(rbSemMen==null){ |
408 | 383 |
rbSemMen=new JRadioButton(); |
409 |
// TODO: Comprobar que funcionan las traducciones |
|
410 |
//rbSemMen.setToolTipText(PluginServices.getText(this,"jpDat_SemMenToolTipText")); |
|
411 |
rbSemMen.setToolTipText("Fijar el par?metro Semieje Menor"); |
|
412 |
//rbSemMen.setText(PluginServices.getText(this,"jpDat_SemMen")); |
|
413 |
rbSemMen.setText("Semieje Menor"); |
|
384 |
rbSemMen.setToolTipText(PluginServices.getText(this,"Dat_SemMenToolTipText")); |
|
385 |
rbSemMen.setText(PluginServices.getText(this,"Dat_SemMen")); |
|
414 | 386 |
rbSemMen.addActionListener(this); |
415 | 387 |
} |
416 | 388 |
return rbSemMen; |
Also available in: Unified diff