Revision 10787 branches/F2/extensions/extJCRS/src/org/gvsig/crs/gui/panels/wizard/DefSistCoordenadas.java
DefSistCoordenadas.java | ||
---|---|---|
20 | 20 |
import javax.swing.table.DefaultTableModel; |
21 | 21 |
import javax.swing.table.TableColumn; |
22 | 22 |
|
23 |
import com.iver.andami.PluginServices; |
|
23 | 24 |
|
24 | 25 |
|
26 |
|
|
25 | 27 |
/** |
26 | 28 |
* Panel de Definici?n del Sistema de Coordenadas |
27 | 29 |
* |
... | ... | |
75 | 77 |
*/ |
76 | 78 |
public JRadioButton getRbGeografico() { |
77 | 79 |
if (rbGeografico==null){ |
78 |
//TODO:Comprobar que funcionan las traducciones |
|
79 |
//rbGeografico=new JRadioButton(PluginServices.getText(this,"jpSistCoor_Geografico2D")); |
|
80 |
rbGeografico=new JRadioButton("Geogr?fico 2D"); |
|
80 |
rbGeografico=new JRadioButton(PluginServices.getText(this,"SistCoor_Geografico2D")); |
|
81 | 81 |
rbGeografico.addActionListener(this); |
82 | 82 |
} |
83 | 83 |
return rbGeografico; |
... | ... | |
88 | 88 |
*/ |
89 | 89 |
public JRadioButton getRbProyectado() { |
90 | 90 |
if (rbProyectado==null){ |
91 |
//TODO:Comprobar que funcionan las traducciones |
|
92 |
//rbProyectado=new JRadioButton(PluginServices.getText(this,"jpSistCoor_Proyactado")); |
|
93 |
rbProyectado=new JRadioButton("Proyectado"); |
|
91 |
rbProyectado=new JRadioButton(PluginServices.getText(this,"SistCoor_Proyactado")); |
|
94 | 92 |
rbProyectado.addActionListener(this); |
95 | 93 |
} |
96 | 94 |
return rbProyectado; |
... | ... | |
107 | 105 |
b.setHgap(5); |
108 | 106 |
proyectadoPanel=new JPanel(b); |
109 | 107 |
proyectadoPanel.setBorder(BorderFactory.createEmptyBorder(0,3,0,3)); |
110 |
//JPanel p=new JPanel(new FlowLayout(FlowLayout.CENTER,10,10)); |
|
111 | 108 |
JPanel p=new JPanel(new GridLayout(1,0,10,10)); |
112 | 109 |
JPanel in=new JPanel(new FlowLayout(FlowLayout.RIGHT,3,5)); |
113 | 110 |
in.add(getLblProyeccion()); |
... | ... | |
134 | 131 |
top.add(getRbProyectado()); |
135 | 132 |
//Agrupar las opciones |
136 | 133 |
agruparRadioButtons(); |
137 |
//TODO:Comprobar que funcionan las traducciones |
|
138 |
//top.setBorder(new TitledBorder(PluginServices.getText(this,"jpSistCoor_titmarco"))); |
|
139 |
top.setBorder(new TitledBorder("Sistema de Coordenadas ")); |
|
134 |
top.setBorder(new TitledBorder(PluginServices.getText(this,"SistCoor_titmarco"))); |
|
140 | 135 |
} |
141 | 136 |
return top; |
142 | 137 |
} |
... | ... | |
160 | 155 |
public JLabel getLblProyeccion() { |
161 | 156 |
if (lblProyeccion==null){ |
162 | 157 |
lblProyeccion=new JLabel(); |
163 |
//TODO: Comprobar que funcionan las traducciones |
|
164 |
//lblProyeccion.setText(PluginServices.getText(this,"jpSistCoor_Proyeccion")); |
|
165 |
lblProyeccion.setText("Proyecci?n"); |
|
158 |
lblProyeccion.setText(PluginServices.getText(this,"SistCoor_Proyeccion")); |
|
166 | 159 |
} |
167 | 160 |
return lblProyeccion; |
168 | 161 |
} |
... | ... | |
185 | 178 |
{"", "", "Metros"}, |
186 | 179 |
{"", "", "Metros"}, |
187 | 180 |
{"", "", "Metros"}}; |
188 |
//TODO: Comprobar que funcionan las traducciones |
|
189 |
/*String col1=PluginServices.getText(this,"jpSistCoor_Parametro"); |
|
190 |
String col2=PluginServices.getText(this,"jpSistCoor_Valor"); |
|
191 |
String col3=PluginServices.getText(this,"jpSistCoor_Unidades"); |
|
192 |
Object[] headers = {col1, col2, col3};*/ |
|
193 |
Object[] headers = {"Parametro", "Valor", "Unidades"}; |
|
181 |
|
|
182 |
String col1=PluginServices.getText(this,"SistCoor_Parametro"); |
|
183 |
String col2=PluginServices.getText(this,"SistCoor_Valor"); |
|
184 |
String col3=PluginServices.getText(this,"SistCoor_Unidades"); |
|
185 |
Object[] headers = {col1, col2, col3}; |
|
194 | 186 |
model.setDataVector(data,headers); |
195 | 187 |
/*Agrega otra fila |
196 | 188 |
model.addRow(new Object[]{"fila","","Metros"});*/ |
... | ... | |
229 | 221 |
public JComboBox getCbProyeccion() { |
230 | 222 |
if (cbProyeccion==null){ |
231 | 223 |
cbProyeccion=new JComboBox(); |
232 |
//no se pueden modificar los items del combobox |
|
233 | 224 |
cbProyeccion.setEditable(false); |
234 |
//TODO: //Poner texto con plugin services |
|
235 |
//cbProyeccion.setToolTipText(PluginServices.getText(this,"jpSistCoor_cbToolTip")); |
|
236 |
cbProyeccion.setToolTipText("Selecciona una opci?n"); |
|
225 |
cbProyeccion.setToolTipText(PluginServices.getText(this,"SistCoor_cbToolTip")); |
|
237 | 226 |
/*A?adir las opciones al combo*/ |
238 | 227 |
cbProyeccion.addItem("uno"); |
239 | 228 |
cbProyeccion.addItem("dos"); |
Also available in: Unified diff