Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java @ 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 | 6b2ae2ec5b01 |
children | cf64f54aa39c |
line wrap: on
line diff
--- 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())); } }