source: josm/trunk/src/org/openstreetmap/josm/gui/widgets/OsmPrimitiveTypesComboBox.java@ 3083

Last change on this file since 3083 was 3083, checked in by bastiK, 14 years ago

added svn:eol-style=native to source files

  • Property svn:eol-style set to native
File size: 531 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.widgets;
3
4import javax.swing.JComboBox;
5
6import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
7
8/**
9 * @author Matthias Julius
10 */
11public class OsmPrimitiveTypesComboBox extends JComboBox {
12
13 public OsmPrimitiveTypesComboBox() {
14 for (OsmPrimitiveType type: OsmPrimitiveType.values()){
15 addItem(type);
16 }
17 }
18
19 public OsmPrimitiveType getType() {
20 return (OsmPrimitiveType)this.getSelectedItem();
21 }
22}
Note: See TracBrowser for help on using the repository browser.