Changeset 30532 in osm for applications/editors/josm/plugins/smed
- Timestamp:
- 2014-07-14T04:18:06+02:00 (11 years ago)
- Location:
- applications/editors/josm/plugins/smed
- Files:
-
- 4 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified applications/editors/josm/plugins/smed/src/panels/PanelLights.java ¶
r29894 r30532 18 18 public JLabel categoryLabel; 19 19 20 public JComboBox landCatBox; 20 public JComboBox<String> landCatBox; 21 21 public EnumMap<Cat, Integer> landCats = new EnumMap<Cat, Integer>(Cat.class); 22 22 private ActionListener alLandCatBox = new ActionListener() { … … 31 31 } 32 32 }; 33 public JComboBox trafficCatBox; 33 public JComboBox<String> trafficCatBox; 34 34 public EnumMap<Cat, Integer> trafficCats = new EnumMap<Cat, Integer>(Cat.class); 35 35 private ActionListener alTrafficCatBox = new ActionListener() { … … 44 44 } 45 45 }; 46 public JComboBox warningCatBox; 46 public JComboBox<String> warningCatBox; 47 47 public EnumMap<Cat, Integer> warningCats = new EnumMap<Cat, Integer>(Cat.class); 48 48 private ActionListener alWarningCatBox = new ActionListener() { … … 57 57 } 58 58 }; 59 public JComboBox platformCatBox; 59 public JComboBox<String> platformCatBox; 60 60 public EnumMap<Cat, Integer> platformCats = new EnumMap<Cat, Integer>(Cat.class); 61 61 private ActionListener alPlatformCatBox = new ActionListener() { … … 70 70 } 71 71 }; 72 public JComboBox pilotCatBox; 72 public JComboBox<String> pilotCatBox; 73 73 public EnumMap<Cat, Integer> pilotCats = new EnumMap<Cat, Integer>(Cat.class); 74 74 private ActionListener alPilotCatBox = new ActionListener() { … … 83 83 } 84 84 }; 85 public JComboBox rescueCatBox; 85 public JComboBox<String> rescueCatBox; 86 86 public EnumMap<Cat, Integer> rescueCats = new EnumMap<Cat, Integer>(Cat.class); 87 87 private ActionListener alRescueCatBox = new ActionListener() { … … 96 96 } 97 97 }; 98 public JComboBox radioCatBox; 98 public JComboBox<String> radioCatBox; 99 99 public EnumMap<Cat, Integer> radioCats = new EnumMap<Cat, Integer>(Cat.class); 100 100 private ActionListener alRadioCatBox = new ActionListener() { … … 109 109 } 110 110 }; 111 public JComboBox radarCatBox; 111 public JComboBox<String> radarCatBox; 112 112 public EnumMap<Cat, Integer> radarCats = new EnumMap<Cat, Integer>(Cat.class); 113 113 private ActionListener alRadarCatBox = new ActionListener() { … … 123 123 }; 124 124 public JLabel functionLabel; 125 public JComboBox functionBox; 125 public JComboBox<String> functionBox; 126 126 public EnumMap<Fnc, Integer> functions = new EnumMap<Fnc, Integer>(Fnc.class); 127 127 private ActionListener alfunctionBox = new ActionListener() { … … 261 261 functionLabel.setVisible(false); 262 262 263 functionBox = new JComboBox(); 263 functionBox = new JComboBox<>(); 264 264 functionBox.setBounds(new Rectangle(5, 110, 160, 18)); 265 265 add(functionBox); … … 281 281 categoryLabel.setVisible(false); 282 282 283 landCatBox = new JComboBox(); 283 landCatBox = new JComboBox<>(); 284 284 landCatBox.setBounds(new Rectangle(5, 142, 160, 18)); 285 285 add(landCatBox); … … 308 308 landCatBox.setVisible(false); 309 309 310 trafficCatBox = new JComboBox(); 310 trafficCatBox = new JComboBox<>(); 311 311 trafficCatBox.setBounds(new Rectangle(5, 140, 160, 20)); 312 312 add(trafficCatBox); … … 325 325 trafficCatBox.setVisible(false); 326 326 327 warningCatBox = new JComboBox(); 327 warningCatBox = new JComboBox<>(); 328 328 warningCatBox.setBounds(new Rectangle(5, 140, 160, 20)); 329 329 add(warningCatBox); … … 347 347 warningCatBox.setVisible(false); 348 348 349 platformCatBox = new JComboBox(); 349 platformCatBox = new JComboBox<>(); 350 350 platformCatBox.setBounds(new Rectangle(5, 140, 160, 20)); 351 351 add(platformCatBox); … … 364 364 platformCatBox.setVisible(false); 365 365 366 pilotCatBox = new JComboBox(); 366 pilotCatBox = new JComboBox<>(); 367 367 pilotCatBox.setBounds(new Rectangle(5, 140, 160, 20)); 368 368 add(pilotCatBox); … … 374 374 pilotCatBox.setVisible(false); 375 375 376 rescueCatBox = new JComboBox(); 376 rescueCatBox = new JComboBox<>(); 377 377 rescueCatBox.setBounds(new Rectangle(5, 140, 160, 20)); 378 378 add(rescueCatBox); … … 391 391 rescueCatBox.setVisible(false); 392 392 393 radioCatBox = new JComboBox(); 393 radioCatBox = new JComboBox<>(); 394 394 radioCatBox.setBounds(new Rectangle(5, 140, 160, 20)); 395 395 add(radioCatBox); … … 429 429 radioCatBox.setVisible(false); 430 430 431 radarCatBox = new JComboBox(); 431 radarCatBox = new JComboBox<>(); 432 432 radarCatBox.setBounds(new Rectangle(5, 140, 160, 20)); 433 433 add(radarCatBox); -
TabularUnified applications/editors/josm/plugins/smed/src/panels/PanelLit.java ¶
r29894 r30532 39 39 }; 40 40 public JLabel visibilityLabel; 41 public JComboBox visibilityBox; 41 public JComboBox<String> visibilityBox; 42 42 public EnumMap<Vis, Integer> visibilities = new EnumMap<Vis, Integer>(Vis.class); 43 43 private ActionListener alVisibility = new ActionListener() { … … 79 79 }; 80 80 public JLabel categoryLabel; 81 public JComboBox categoryBox; 81 public JComboBox<String> categoryBox; 82 82 public EnumMap<Lit, Integer> categories = new EnumMap<Lit, Integer>(Lit.class); 83 83 private ActionListener alCategory = new ActionListener() { … … 115 115 }; 116 116 public JLabel exhibitionLabel; 117 public JComboBox exhibitionBox; 117 public JComboBox<String> exhibitionBox; 118 118 public EnumMap<Exh, Integer> exhibitions = new EnumMap<Exh, Integer>(Exh.class); 119 119 private ActionListener alExhibition = new ActionListener() { … … 209 209 categoryLabel.setBounds(new Rectangle(185, 0, 165, 20)); 210 210 add(categoryLabel); 211 categoryBox = new JComboBox(); 211 categoryBox = new JComboBox<>(); 212 212 categoryBox.setBounds(new Rectangle(185, 20, 165, 20)); 213 213 add(categoryBox); … … 235 235 visibilityLabel.setBounds(new Rectangle(185, 40, 165, 20)); 236 236 add(visibilityLabel); 237 visibilityBox = new JComboBox(); 237 visibilityBox = new JComboBox<>(); 238 238 visibilityBox.setBounds(new Rectangle(185, 60, 165, 20)); 239 239 add(visibilityBox); … … 247 247 exhibitionLabel.setBounds(new Rectangle(280, 80, 70, 20)); 248 248 add(exhibitionLabel); 249 exhibitionBox = new JComboBox(); 249 exhibitionBox = new JComboBox<>(); 250 250 exhibitionBox.setBounds(new Rectangle(280, 100, 70, 20)); 251 251 add(exhibitionBox); -
TabularUnified applications/editors/josm/plugins/smed/src/panels/PanelMore.java ¶
r29894 r30532 44 44 }; 45 45 public JLabel statusLabel; 46 public JComboBox statusBox; 46 public JComboBox<String> statusBox; 47 47 public EnumMap<Sts, Integer> statuses = new EnumMap<Sts, Integer>(Sts.class); 48 48 private ActionListener alStatus = new ActionListener() { … … 56 56 }; 57 57 public JLabel constrLabel; 58 public JComboBox constrBox; 58 public JComboBox<String> constrBox; 59 59 public EnumMap<Cns, Integer> constructions = new EnumMap<Cns, Integer>(Cns.class); 60 60 private ActionListener alConstr = new ActionListener() { … … 68 68 }; 69 69 public JLabel conLabel; 70 public JComboBox conBox; 70 public JComboBox<String> conBox; 71 71 public EnumMap<Con, Integer> conspicuities = new EnumMap<Con, Integer>(Con.class); 72 72 private ActionListener alCon = new ActionListener() { … … 80 80 }; 81 81 public JLabel reflLabel; 82 public JComboBox reflBox; 82 public JComboBox<String> reflBox; 83 83 public EnumMap<Con, Integer> reflectivities = new EnumMap<Con, Integer>(Con.class); 84 84 private ActionListener alRefl = new ActionListener() { … … 235 235 statusLabel.setBounds(new Rectangle(250, 0, 100, 20)); 236 236 add(statusLabel); 237 statusBox = new JComboBox(); 237 statusBox = new JComboBox<>(); 238 238 statusBox.setBounds(new Rectangle(250, 20, 100, 20)); 239 239 addStsItem("", Sts.UNKSTS); … … 262 262 constrLabel.setBounds(new Rectangle(250, 40, 100, 20)); 263 263 add(constrLabel); 264 constrBox = new JComboBox(); 264 constrBox = new JComboBox<>(); 265 265 constrBox.setBounds(new Rectangle(250, 60, 100, 20)); 266 266 addCnsItem("", Cns.UNKCNS); … … 280 280 conLabel.setBounds(new Rectangle(250, 80, 100, 20)); 281 281 add(conLabel); 282 conBox = new JComboBox(); 282 conBox = new JComboBox<>(); 283 283 conBox.setBounds(new Rectangle(250, 100, 100, 20)); 284 284 addConItem("", Con.UNKCON); … … 291 291 reflLabel.setBounds(new Rectangle(250, 120, 100, 20)); 292 292 add(reflLabel); 293 reflBox = new JComboBox(); 293 reflBox = new JComboBox<>(); 294 294 reflBox.setBounds(new Rectangle(250, 140, 100, 20)); 295 295 addReflItem("", Con.UNKCON); … … 361 361 return button; 362 362 } 363 364 363 } -
TabularUnified applications/editors/josm/plugins/smed/src/panels/PanelRadar.java ¶
r29894 r30532 28 28 } 29 29 }; 30 private JComboBox radioCatBox; 30 private JComboBox<String> radioCatBox; 31 31 private EnumMap<Cat, Integer> radioCats = new EnumMap<Cat, Integer>(Cat.class); 32 32 private ActionListener alRadioCatBox = new ActionListener() { … … 175 175 add(aisButton); 176 176 177 radioCatBox = new JComboBox(); 177 radioCatBox = new JComboBox<>(); 178 178 radioCatBox.setBounds(new Rectangle(210, 40, 150, 20)); 179 179 add(radioCatBox); -
TabularUnified applications/editors/josm/plugins/smed/src/panels/PanelSectors.java ¶
r29894 r30532 36 36 } 37 37 }; 38 public JComboBox colourBox; 38 public JComboBox<ImageIcon> colourBox; 39 39 public EnumMap<Col, ImageIcon> colours = new EnumMap<Col, ImageIcon>(Col.class); 40 public JComboBox visibilityBox; 40 public JComboBox<String> visibilityBox; 41 41 public EnumMap<Vis, String> visibilities = new EnumMap<Vis, String>(Vis.class); 42 public JComboBox exhibitionBox; 42 public JComboBox<String> exhibitionBox; 43 43 public EnumMap<Exh, String> exhibitions = new EnumMap<Exh, String>(Exh.class); 44 44 … … 74 74 75 75 TableColumn colColumn = table.getColumnModel().getColumn(1); 76 colourBox = new JComboBox(); 76 colourBox = new JComboBox<>(); 77 77 addColItem(new ImageIcon(getClass().getResource("/images/DelButton.png")), Col.UNKCOL); 78 78 addColItem(new ImageIcon(getClass().getResource("/images/WhiteButton.png")), Col.WHITE); … … 87 87 88 88 TableColumn visColumn = table.getColumnModel().getColumn(12); 89 visibilityBox = new JComboBox(); 89 visibilityBox = new JComboBox<>(); 90 90 addVisibItem("", Vis.UNKVIS); 91 91 addVisibItem(Messages.getString("Intensified"), Vis.INTEN); … … 95 95 96 96 TableColumn exhColumn = table.getColumnModel().getColumn(13); 97 exhibitionBox = new JComboBox(); 97 exhibitionBox = new JComboBox<>(); 98 98 addExhibItem("", Exh.UNKEXH); 99 99 addExhibItem(Messages.getString("24h"), Exh.H24); -
TabularUnified applications/editors/josm/plugins/smed/src/panels/PanelSpec.java ¶
r30294 r30532 17 17 private SmedAction dlg; 18 18 public JLabel categoryLabel; 19 public JComboBox categoryBox; 19 public JComboBox<String> categoryBox; 20 20 public EnumMap<Cat, Integer> categories = new EnumMap<Cat, Integer>(Cat.class); 21 21 private ActionListener alCategoryBox = new ActionListener() { … … 28 28 } 29 29 }; 30 public JComboBox mooringBox; 30 public JComboBox<String> mooringBox; 31 31 public EnumMap<Cat, Integer> moorings = new EnumMap<Cat, Integer>(Cat.class); 32 32 private ActionListener alMooringBox = new ActionListener() { … … 173 173 categoryLabel.setBounds(new Rectangle(5, 125, 160, 18)); 174 174 add(categoryLabel); 175 categoryBox = new JComboBox(); 175 categoryBox = new JComboBox<>(); 176 176 categoryBox.setBounds(new Rectangle(5, 142, 160, 18)); 177 177 add(categoryBox); … … 196 196 addCatItem(Messages.getString("FerryCross"), Cat.SPM_FRRY); 197 197 addCatItem(Messages.getString("Anchorage"), Cat.SPM_ANCH); 198 mooringBox = new JComboBox(); 198 mooringBox = new JComboBox<>(); 199 199 mooringBox.setBounds(new Rectangle(5, 142, 160, 18)); 200 200 add(mooringBox);
Note:
See TracChangeset
for help on using the changeset viewer.