changeset 3839:509ef6ec93af

Add html links for the additinal river and gauge info pages flys-client/trunk@5554 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Fri, 21 Sep 2012 11:08:34 +0000
parents 70976b711b7e
children cf64f54aa39c
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java
diffstat 6 files changed, 41 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Fri Sep 21 10:52:42 2012 +0000
+++ b/flys-client/ChangeLog	Fri Sep 21 11:08:34 2012 +0000
@@ -1,3 +1,12 @@
+2012-09-21	Björn Ricks	<bjoern.ricks@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties,
+	  src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties,
+	  src/main/java/de/intevation/flys/client/client/FLYSConstants.java,
+	  src/main/java/de/intevation/flys/client/client/FLYSConstants.properties,
+	  src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java:
+	  Add html links to the additional gauge and river info pages.
+
 2012-09-21	Björn Ricks	<bjoern.ricks@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/server/GaugeOverviewInfoServiceImpl.java,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Fri Sep 21 10:52:42 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.java	Fri Sep 21 11:08:34 2012 +0000
@@ -1022,8 +1022,14 @@
 
     String sq_overview();
 
+    // Gauge Overview Info
+
     String gauge_zero();
 
     String gauge_q_unit();
+
+    String gauge_info_link();
+
+    String gauge_river_info_link();
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Fri Sep 21 10:52:42 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties	Fri Sep 21 11:08:34 2012 +0000
@@ -534,3 +534,5 @@
 
 gauge_zero = Gauge zero ground
 gauge_q_unit = m\u00b3/s
+gauge_river_info_link = Riverinfo
+gauge_info_link = Gaugeinfo
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Fri Sep 21 10:52:42 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties	Fri Sep 21 11:08:34 2012 +0000
@@ -532,3 +532,5 @@
 
 gauge_zero = Pegelnullpunkt
 gauge_q_unit = m\u00b3/s
+gauge_river_info_link = Gew\u00e4sserinfo
+gauge_info_link = Pegelinfo
--- a/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Fri Sep 21 10:52:42 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties	Fri Sep 21 11:08:34 2012 +0000
@@ -533,3 +533,5 @@
 
 gauge_zero = Gauge zero ground
 gauge_q_unit = m\u00b3/s
+gauge_river_info_link = Riverinfo
+gauge_info_link = Gaugeinfo
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java	Fri Sep 21 10:52:42 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java	Fri Sep 21 11:08:34 2012 +0000
@@ -7,6 +7,7 @@
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.i18n.client.NumberFormat;
 import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.google.gwt.user.client.ui.Anchor;
 import com.google.gwt.user.client.ui.DecoratorPanel;
 import com.google.gwt.user.client.ui.Grid;
 import com.google.gwt.user.client.ui.HorizontalPanel;
@@ -314,6 +315,20 @@
                             }
                         }
                     }
+                    else if (state.equals("state.winfo.historicalq.reference_gauge")) {
+                        for (int j = dl.size()-1; j >= 0; --j) {
+                            Data d = dl.get(j);
+                            String label = d.getLabel();
+                            if (label.equals("reference_gauge")) {
+                                String tmp = d.getStringValue();
+                                if (tmp != null) {
+                                    Integer gaugereference = Integer.valueOf(tmp);
+                                    if (gaugereference != null) {
+                                    }
+                                }
+                            }
+                        }
+                    }
                 }
             }
             if (!curvelocations.isEmpty()) {
@@ -431,6 +446,9 @@
             }
 
             addLabel(qtext, false);
+
+            Anchor anchor = new Anchor(MSG.gauge_river_info_link(), riverinfo.getInfoURL());
+            add(anchor);
         }
 
         private void addLabel(String text, boolean wordwrap) {
@@ -508,6 +526,8 @@
                 label = new Label(stext);
                 addMember(label);
             }
+
+            addMember(new Anchor(MSG.gauge_info_link(), gauge.getInfoURL()));
         }
     }
 

http://dive4elements.wald.intevation.org