Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/RiverInfoPanel.java @ 6193:56e8bd0958a9
Generate SSO wiki links in RiverInfoPanel instead of plain Anchors.
Part of flys/issue1265
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Tue, 04 Jun 2013 17:41:02 +0200 |
parents | 165020640d7b |
children | 24be0cc1c67c |
comparison
equal
deleted
inserted
replaced
6192:165020640d7b | 6193:56e8bd0958a9 |
---|---|
14 import com.google.gwt.i18n.client.NumberFormat; | 14 import com.google.gwt.i18n.client.NumberFormat; |
15 import com.google.gwt.user.client.ui.Anchor; | 15 import com.google.gwt.user.client.ui.Anchor; |
16 import com.google.gwt.user.client.ui.HorizontalPanel; | 16 import com.google.gwt.user.client.ui.HorizontalPanel; |
17 import com.google.gwt.user.client.ui.Label; | 17 import com.google.gwt.user.client.ui.Label; |
18 import com.google.gwt.user.client.ui.Widget; | 18 import com.google.gwt.user.client.ui.Widget; |
19 import com.google.gwt.user.client.ui.HTML; | |
19 | 20 |
20 import org.dive4elements.river.client.client.FLYS; | 21 import org.dive4elements.river.client.client.FLYS; |
21 import org.dive4elements.river.client.client.FLYSConstants; | 22 import org.dive4elements.river.client.client.FLYSConstants; |
22 | 23 |
23 import org.dive4elements.river.client.shared.model.RiverInfo; | 24 import org.dive4elements.river.client.shared.model.RiverInfo; |
95 | 96 |
96 Long number = riverinfo.getOfficialNumber(); | 97 Long number = riverinfo.getOfficialNumber(); |
97 String url = number != null ? | 98 String url = number != null ? |
98 MSG.gauge_river_url() + number : | 99 MSG.gauge_river_url() + number : |
99 MSG.gauge_river_url(); | 100 MSG.gauge_river_url(); |
100 Anchor anchor = new Anchor(MSG.gauge_river_info_link(), url, "_blank"); | 101 add(new HTML(WikiLinks.linkHTML(this.flys, url, |
101 add(anchor); | 102 MSG.gauge_river_info_link()))); |
102 } | 103 } |
103 | 104 |
104 public static int getStaticHeight() { | 105 public static int getStaticHeight() { |
105 return RiverInfoPanel.HEIGHT + | 106 return RiverInfoPanel.HEIGHT + |
106 (2 * RiverInfoPanel.BORDER_WIDTH) + | 107 (2 * RiverInfoPanel.BORDER_WIDTH) + |