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.
|
---|
2 | package org.openstreetmap.josm.gui.widgets;
|
---|
3 |
|
---|
4 | import javax.swing.JComboBox;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * @author Matthias Julius
|
---|
10 | */
|
---|
11 | public 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.