Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/GetFeatureInfoWindow.java @ 3347:6d749af6a9c2
Issue #726 work.
flys-client/trunk@5022 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Tue, 17 Jul 2012 11:45:35 +0000 |
parents | 75d11997921c |
children | ffbdd093da74 |
comparison
equal
deleted
inserted
replaced
3346:f2039d030b5e | 3347:6d749af6a9c2 |
---|---|
1 package de.intevation.flys.client.client.ui.map; | 1 package de.intevation.flys.client.client.ui.map; |
2 | |
3 import com.google.gwt.core.client.GWT; | |
4 import com.smartgwt.client.widgets.Label; | |
5 import com.smartgwt.client.widgets.Window; | |
6 import com.smartgwt.client.widgets.layout.HLayout; | |
7 import com.smartgwt.client.widgets.layout.VLayout; | |
8 | |
9 import de.intevation.flys.client.client.FLYSConstants; | |
10 import de.intevation.flys.client.shared.model.FeatureInfo; | |
2 | 11 |
3 import java.util.List; | 12 import java.util.List; |
4 import java.util.Map; | 13 import java.util.Map; |
5 import java.util.Set; | 14 import java.util.Set; |
6 | 15 |
7 import com.google.gwt.core.client.GWT; | |
8 | |
9 import com.smartgwt.client.widgets.Label; | |
10 import com.smartgwt.client.widgets.Window; | |
11 import com.smartgwt.client.widgets.layout.HLayout; | |
12 import com.smartgwt.client.widgets.layout.VLayout; | |
13 | |
14 import org.gwtopenmaps.openlayers.client.feature.VectorFeature; | 16 import org.gwtopenmaps.openlayers.client.feature.VectorFeature; |
15 import org.gwtopenmaps.openlayers.client.util.Attributes; | 17 import org.gwtopenmaps.openlayers.client.util.Attributes; |
16 import org.gwtopenmaps.openlayers.client.util.JSObject; | 18 import org.gwtopenmaps.openlayers.client.util.JSObject; |
17 | |
18 import de.intevation.flys.client.shared.model.FeatureInfo; | |
19 | |
20 import de.intevation.flys.client.client.FLYSConstants; | |
21 | 19 |
22 | 20 |
23 public class GetFeatureInfoWindow extends Window { | 21 public class GetFeatureInfoWindow extends Window { |
24 | 22 |
25 protected FLYSConstants MSG = GWT.create(FLYSConstants.class); | 23 protected FLYSConstants MSG = GWT.create(FLYSConstants.class); |
73 r.addMember(l); | 71 r.addMember(l); |
74 | 72 |
75 Map<String, String> attrs = feature.getAttrs(); | 73 Map<String, String> attrs = feature.getAttrs(); |
76 Set<Map.Entry<String, String>> entries = attrs.entrySet(); | 74 Set<Map.Entry<String, String>> entries = attrs.entrySet(); |
77 | 75 |
78 for (Map.Entry entry: entries) { | 76 for (Map.Entry<String, String> entry: entries) { |
79 Label attr = new Label(entry.getKey() + ": " + entry.getValue()); | 77 Label attr = new Label(entry.getKey() + ": " + entry.getValue()); |
80 attr.setHeight(ROW_HEIGHT); | 78 attr.setHeight(ROW_HEIGHT); |
81 | 79 |
82 r.addMember(attr); | 80 r.addMember(attr); |
83 } | 81 } |