Last change
on this file since 5450 was 5450, checked in by Don-vip, 12 years ago |
fix #7917 - Control the number of items displayed at once in all comboboxes (replaced configurable method with a dynamic method based on screen height and look and feel)
|
-
Property svn:eol-style
set to
native
|
File size:
533 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.widgets;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.data.osm.OsmPrimitiveType;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * @author Matthias Julius
|
---|
8 | */
|
---|
9 | public class OsmPrimitiveTypesComboBox extends JosmComboBox {
|
---|
10 |
|
---|
11 | public OsmPrimitiveTypesComboBox() {
|
---|
12 | super(OsmPrimitiveType.dataValues());
|
---|
13 | }
|
---|
14 |
|
---|
15 | public OsmPrimitiveType getType() {
|
---|
16 | try {
|
---|
17 | return (OsmPrimitiveType)this.getSelectedItem();
|
---|
18 | } catch (Exception e) {
|
---|
19 | return null;
|
---|
20 | }
|
---|
21 | }
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.