Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/RiverInfoPanel.java @ 6272:24be0cc1c67c
Replaced the 'old school' wiki link buttons with default links.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 11 Jun 2013 12:57:51 +0200 |
parents | 56e8bd0958a9 |
children | c702bac7f72e |
comparison
equal
deleted
inserted
replaced
6271:9b7f1288e6c4 | 6272:24be0cc1c67c |
---|---|
8 | 8 |
9 package org.dive4elements.river.client.client.ui; | 9 package org.dive4elements.river.client.client.ui; |
10 | 10 |
11 import java.util.Iterator; | 11 import java.util.Iterator; |
12 | 12 |
13 import org.dive4elements.river.client.client.FLYS; | |
14 import org.dive4elements.river.client.client.FLYSConstants; | |
15 import org.dive4elements.river.client.shared.model.RiverInfo; | |
16 | |
13 import com.google.gwt.core.client.GWT; | 17 import com.google.gwt.core.client.GWT; |
14 import com.google.gwt.i18n.client.NumberFormat; | 18 import com.google.gwt.i18n.client.NumberFormat; |
15 import com.google.gwt.user.client.ui.Anchor; | |
16 import com.google.gwt.user.client.ui.HorizontalPanel; | 19 import com.google.gwt.user.client.ui.HorizontalPanel; |
17 import com.google.gwt.user.client.ui.Label; | 20 import com.google.gwt.user.client.ui.Label; |
18 import com.google.gwt.user.client.ui.Widget; | 21 import com.google.gwt.user.client.ui.Widget; |
19 import com.google.gwt.user.client.ui.HTML; | 22 import com.smartgwt.client.widgets.form.DynamicForm; |
20 | 23 import com.smartgwt.client.widgets.form.fields.LinkItem; |
21 import org.dive4elements.river.client.client.FLYS; | |
22 import org.dive4elements.river.client.client.FLYSConstants; | |
23 | |
24 import org.dive4elements.river.client.shared.model.RiverInfo; | |
25 | 24 |
26 /** | 25 /** |
27 * Panel to display information about a river. | 26 * Panel to display information about a river. |
28 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a> | 27 * @author <a href="mailto:bjoern.ricks@intevation.de">Björn Ricks</a> |
29 */ | 28 */ |
96 | 95 |
97 Long number = riverinfo.getOfficialNumber(); | 96 Long number = riverinfo.getOfficialNumber(); |
98 String url = number != null ? | 97 String url = number != null ? |
99 MSG.gauge_river_url() + number : | 98 MSG.gauge_river_url() + number : |
100 MSG.gauge_river_url(); | 99 MSG.gauge_river_url(); |
101 add(new HTML(WikiLinks.linkHTML(this.flys, url, | 100 DynamicForm infoLink = WikiLinks.linkHTML(this.flys, url, |
102 MSG.gauge_river_info_link()))); | 101 MSG.gauge_river_info_link()); |
102 infoLink.setTop(5); | |
103 LinkItem item = (LinkItem)infoLink.getField("saml"); | |
104 item.setTextBoxStyle("font-size: large;"); | |
105 add(infoLink); | |
103 } | 106 } |
104 | 107 |
105 public static int getStaticHeight() { | 108 public static int getStaticHeight() { |
106 return RiverInfoPanel.HEIGHT + | 109 return RiverInfoPanel.HEIGHT + |
107 (2 * RiverInfoPanel.BORDER_WIDTH) + | 110 (2 * RiverInfoPanel.BORDER_WIDTH) + |