# HG changeset patch # User Bjoern Ricks # Date 1348225714 0 # Node ID 509ef6ec93af19d8f73350dbe404523cfcf6ffb8 # Parent 70976b711b7e6d2b0bdbc0f05e8a4497b09059f9 Add html links for the additinal river and gauge info pages flys-client/trunk@5554 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 70976b711b7e -r 509ef6ec93af flys-client/ChangeLog --- 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 + + * 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 * src/main/java/de/intevation/flys/client/server/GaugeOverviewInfoServiceImpl.java, diff -r 70976b711b7e -r 509ef6ec93af flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.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 : diff -r 70976b711b7e -r 509ef6ec93af flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants.properties --- 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 diff -r 70976b711b7e -r 509ef6ec93af flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_de.properties --- 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 diff -r 70976b711b7e -r 509ef6ec93af flys-client/src/main/java/de/intevation/flys/client/client/FLYSConstants_en.properties --- 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 diff -r 70976b711b7e -r 509ef6ec93af flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java --- 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())); } }