changeset 4327:7b701d9dca98

Reorder elements in the MeasurementStation details Also add the gauge name to the info.
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 30 Oct 2012 13:04:34 +0100
parents 87362ba26c72
children 25157125f4a0
files flys-client/src/main/java/de/intevation/flys/client/client/ui/MeasurementStationTree.java
diffstat 1 files changed, 19 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/MeasurementStationTree.java	Tue Oct 30 13:03:20 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/MeasurementStationTree.java	Tue Oct 30 13:04:34 2012 +0100
@@ -177,26 +177,26 @@
 
         public MeasurementStationDecoratorPanel(MeasurementStation station) {
             setStyleName("infopanel");
-            Grid grid = new Grid(4, 2);
+            Grid grid = new Grid(5, 2);
 
             NumberFormat nf = NumberFormat.getDecimalFormat();
 
+            String type = station.getMeasurementType();
+            if (type != null) {
+                grid.setText(0, 0, MSG.measurement_station_type());
+                grid.setText(0, 1, type);
+            }
+
             String riverside = station.getRiverSide();
             if (riverside != null) {
-                grid.setText(0, 0, MSG.riverside());
-                grid.setText(0, 1, riverside);
+                grid.setText(1, 0, MSG.riverside());
+                grid.setText(1, 1, riverside);
             }
 
-            String type = station.getMeasurementType();
-            if (type != null) {
-                grid.setText(1, 0, MSG.measurement_station_type());
-                grid.setText(1, 1, type);
-            }
-
-            String moperator = station.getOperator();
-            if (moperator != null) {
-                grid.setText(2, 0, MSG.measurement_station_operator());
-                grid.setText(2, 1, moperator);
+            String gaugename = station.getGaugeName();
+            if (gaugename != null) {
+               grid.setText(2, 0, MSG.measurement_station_gauge_name());
+               grid.setText(2, 1, gaugename);
             }
 
             DateTimeFormat df = DateTimeFormat.getMediumDateFormat();
@@ -207,6 +207,12 @@
                grid.setText(3, 1, df.format(starttime));
             }
 
+            String moperator = station.getOperator();
+            if (moperator != null) {
+                grid.setText(4, 0, MSG.measurement_station_operator());
+                grid.setText(4, 1, moperator);
+            }
+
             setWidget(grid);
         }
     }

http://dive4elements.wald.intevation.org