[Dive4elements-commits] [PATCH 4 of 4] GaugeInfoPanel: Smarter formatten link, i18n

Wald Commits scm-commit at wald.intevation.org
Thu Feb 14 10:43:21 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1360835408 -3600
# Node ID e2053fbcd165ccf07f8c8dc44d8873f79e665c23
# Parent  1caf1d7350793bc6bfeb2d7f593c5822261c6c53
GaugeInfoPanel: Smarter formatten link, i18n.

diff -r 1caf1d735079 -r e2053fbcd165 flys-client/src/main/java/de/intevation/flys/client/client/ui/stationinfo/GaugeInfoPanel.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/stationinfo/GaugeInfoPanel.java	Thu Feb 14 10:49:42 2013 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/stationinfo/GaugeInfoPanel.java	Thu Feb 14 10:50:08 2013 +0100
@@ -26,7 +26,7 @@
         setStyleName("gaugeinfopanel");
         setWidth100();
 
-        Grid grid = new Grid(4, 2);
+        Grid grid = new Grid(5, 2);
 
         NumberFormat nf = NumberFormat.getDecimalFormat();
 
@@ -59,8 +59,9 @@
             grid.setText(3, 1, nf.format(datum));
         }
 
+        grid.setWidget(4,0, new GaugeMainValueAnchor(flys, gauge));
+
         addMember(grid);
-        addMember(new GaugeMainValueAnchor(flys, gauge));
     }
 
 
@@ -74,10 +75,10 @@
         private GaugeInfo gauge;
 
         public GaugeMainValueAnchor(FLYS flys, GaugeInfo gauge) {
-            super("TODO:i18n MainVALUES");
-            // TODO i18n mainvalues
+            super(MSG.show_mainvalues());
             this.flys = flys;
             this.gauge = gauge;
+            this.setHeight("5");
 
             addClickHandler(this);
         }


More information about the Dive4elements-commits mailing list