Changeset 23086 in osm for applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java
- Timestamp:
- 2010-09-09T16:25:18+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java
r23078 r23086 153 153 public JTextField tfM01Height = null; 154 154 public JLabel lM01Range = null; 155 public JTextField tfM01Range = null; 155 156 public JLabel lM01Group = null; 156 157 public JTextField tfM01Group = null; … … 165 166 public JTextField tfM02Bearing = null; 166 167 public JTextField tfM01Radius = null; 167 public JTextField tfM01Range = null;168 168 public JButton bM01Save = null; 169 169 public JButton bM01Close = null; … … 662 662 ActionListener alM01Fired = new ActionListener() { 663 663 public void actionPerformed(java.awt.event.ActionEvent e) { 664 buoy.setSectored(rbM01FiredN.isSelected()); 664 665 buoy.paintSign(); 665 666 } … … 865 866 return; 866 867 } 867 if (cat == 0)868 return;869 868 870 869 Node n = buoy.getNode(); … … 1035 1034 tfM01Racon.addFocusListener(new FocusAdapter() { 1036 1035 public void focusLost(FocusEvent e) { 1037 buoy.setRaconGroup(tfM01Racon.getText()); 1036 buoy.setRaconGroup(tfM01Racon.getText().trim()); 1038 1037 } 1039 1038 }); … … 1091 1090 tfM01FogGroup.addFocusListener(new FocusAdapter() { 1092 1091 public void focusLost(FocusEvent e) { 1093 buoy.setFogGroup(tfM01FogGroup.getText()); 1092 buoy.setFogGroup(tfM01FogGroup.getText().trim()); 1094 1093 } 1095 1094 }); … … 1104 1103 tfM01FogPeriod.addFocusListener(new FocusAdapter() { 1105 1104 public void focusLost(FocusEvent e) { 1106 buoy.setFogPeriod(tfM01FogPeriod.getText()); 1105 buoy.setFogPeriod(tfM01FogPeriod.getText().trim()); 1107 1106 } 1108 1107 }); … … 1186 1185 tfM01Height.addFocusListener(new FocusAdapter() { 1187 1186 public void focusLost(FocusEvent e) { 1188 buoy.setName(tfM01Height.getText()); 1187 buoy.setName(tfM01Height.getText().trim()); 1189 1188 } 1190 1189 }); … … 1199 1198 tfM01Range.addFocusListener(new FocusAdapter() { 1200 1199 public void focusLost(FocusEvent e) { 1201 buoy.setName(tfM01Range.getText()); 1200 buoy.setName(tfM01Range.getText().trim()); 1202 1201 } 1203 1202 }); … … 1212 1211 tfM01Group.addFocusListener(new FocusAdapter() { 1213 1212 public void focusLost(FocusEvent e) { 1214 buoy.setLightGroup(tfM01Group.getText()); 1213 buoy.setLightGroup(tfM01Group.getText().trim()); 1214 buoy.paintSign(); 1215 1215 } 1216 1216 }); … … 1225 1225 tfM01RepeatTime.addActionListener(new ActionListener() { 1226 1226 public void actionPerformed(ActionEvent e) { 1227 String s = tfM01RepeatTime.getText(); 1228 1229 buoy.setLightPeriod(s); 1227 buoy.setLightPeriod(tfM01RepeatTime.getText().trim()); 1230 1228 buoy.paintSign(); 1231 1229 } … … 1234 1232 tfM01RepeatTime.addFocusListener(new FocusAdapter() { 1235 1233 public void focusLost(FocusEvent e) { 1236 String s = tfM01RepeatTime.getText(); 1237 1238 buoy.setLightPeriod(s); 1239 buoy.paintSign(); 1240 } 1241 }); 1242 } 1243 1234 buoy.setLightPeriod(tfM01RepeatTime.getText().trim()); 1235 buoy.paintSign(); 1236 } 1237 }); 1238 } 1244 1239 return tfM01RepeatTime; 1245 1240 } … … 1250 1245 cbM01Colour.setBounds(new Rectangle(165, 295, 40, 20)); 1251 1246 cbM01Colour.setFont(new Font("Dialog", Font.PLAIN, 12)); //$NON-NLS-1$ 1247 cbM01Colour.addItem(""); //$NON-NLS-1$ 1252 1248 cbM01Colour.addItem(Messages.getString("SmpDialogAction.190")); //$NON-NLS-1$ 1253 1249 cbM01Colour.addItem(Messages.getString("SmpDialogAction.191")); //$NON-NLS-1$ … … 1255 1251 cbM01Colour.addActionListener(new ActionListener() { 1256 1252 public void actionPerformed(ActionEvent e) { 1257 int col = cbM01Colour.getSelectedIndex(); 1253 buoy.setLightColour((String)cbM01Colour.getSelectedItem()); 1254 buoy.paintSign(); 1258 1255 } 1259 1256 }); … … 1292 1289 tfM01Bearing.addFocusListener(new FocusAdapter() { 1293 1290 public void focusLost(FocusEvent e) { 1294 buoy.setName(tfM01Bearing.getText()); 1291 // buoy.setName(tfM01Bearing.getText()); 1295 1292 } 1296 1293 }); … … 1305 1302 tfM02Bearing.addFocusListener(new FocusAdapter() { 1306 1303 public void focusLost(FocusEvent e) { 1307 buoy.setName(tfM02Bearing.getText()); 1304 // buoy.setName(tfM02Bearing.getText()); 1308 1305 } 1309 1306 }); … … 1318 1315 tfM01Radius.addFocusListener(new FocusAdapter() { 1319 1316 public void focusLost(FocusEvent e) { 1320 buoy.setName(tfM01Radius.getText()); 1317 // buoy.setName(tfM01Radius.getText()); 1321 1318 } 1322 1319 }); … … 1329 1326 bM01Close = new JButton(); 1330 1327 bM01Close.setBounds(new Rectangle(20, 325, 110, 20)); 1331 bM01Close.setText(tr(" close"));1328 bM01Close.setText(tr("Close")); 1332 1329 bM01Close.addActionListener(new ActionListener() { 1333 1330 public void actionPerformed(ActionEvent e) { … … 1353 1350 bM01Save = new JButton(); 1354 1351 bM01Save.setBounds(new Rectangle(150, 325, 110, 20)); 1355 bM01Save.setText(tr(" save"));1352 bM01Save.setText(tr("Save")); 1356 1353 bM01Save.setEnabled(false); 1357 1354
Note:
See TracChangeset
for help on using the changeset viewer.
