Mercurial > dive4elements > river
diff gwt-client/src/main/java/org/dive4elements/river/client/client/ui/fixation/FixGaugeSelectPanel.java @ 9267:c7e5285d434f
bundu bezugswst work
author | gernotbelger |
---|---|
date | Wed, 18 Jul 2018 15:34:53 +0200 |
parents | 6c24c857ccf9 |
children |
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/fixation/FixGaugeSelectPanel.java Wed Jul 18 12:20:01 2018 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/fixation/FixGaugeSelectPanel.java Wed Jul 18 15:34:53 2018 +0200 @@ -48,11 +48,16 @@ protected LinkedHashMap<String, String> mapValues; public FixGaugeSelectPanel() { - this.mapValues = new LinkedHashMap<String, String>(); - this.mapValues.put("0", this.MESSAGES.gauge_mnq()); - this.mapValues.put("1", this.MESSAGES.gauge_mq()); - this.mapValues.put("2", this.MESSAGES.gauge_mhq()); - this.mapValues.put("3", this.MESSAGES.gauge_hq5()); + this.mapValues = getMapValues(this.MESSAGES); + } + + public static final LinkedHashMap<String, String> getMapValues(final FLYSConstants MSG) { + final LinkedHashMap<String, String> mapValues = new LinkedHashMap<String, String>(); + mapValues.put("0", MSG.gauge_mnq()); + mapValues.put("1", MSG.gauge_mq()); + mapValues.put("2", MSG.gauge_mhq()); + mapValues.put("3", MSG.gauge_hq5()); + return mapValues; } @Override