Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/GetFeatureInfoWindow.java @ 4965:8af500d62098
Editing Map print config.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Tue, 05 Feb 2013 13:57:08 +0100 |
parents | ffbdd093da74 |
children | e0ab5a566688 |
comparison
equal
deleted
inserted
replaced
4964:2b32ae372fc4 | 4965:8af500d62098 |
---|---|
1 package de.intevation.flys.client.client.ui.map; | 1 package de.intevation.flys.client.client.ui.map; |
2 | 2 |
3 import com.google.gwt.core.client.GWT; | 3 import com.google.gwt.core.client.GWT; |
4 | |
4 import com.smartgwt.client.widgets.Label; | 5 import com.smartgwt.client.widgets.Label; |
5 import com.smartgwt.client.widgets.Window; | 6 import com.smartgwt.client.widgets.Window; |
6 import com.smartgwt.client.widgets.layout.HLayout; | 7 import com.smartgwt.client.widgets.layout.HLayout; |
7 import com.smartgwt.client.widgets.layout.VLayout; | 8 import com.smartgwt.client.widgets.layout.VLayout; |
8 | 9 |
37 | 38 |
38 | 39 |
39 protected void initLayout() { | 40 protected void initLayout() { |
40 VLayout root = new VLayout(); | 41 VLayout root = new VLayout(); |
41 | 42 |
42 int rows = 0; | |
43 | |
44 for (FeatureInfo feature: features) { | 43 for (FeatureInfo feature: features) { |
45 root.addMember(createFeatureRow(feature)); | 44 root.addMember(createFeatureRow(feature)); |
46 rows++; | |
47 } | 45 } |
48 | 46 |
49 addItem(root); | 47 addItem(root); |
50 | 48 |
51 setWidth(500); | 49 setWidth(500); |
52 setHeight(500); // + rows * ROW_HEIGHT); | 50 setHeight(500); |
53 setTitle(MSG.getFeatureInfoWindowTitle()); | 51 setTitle(MSG.getFeatureInfoWindowTitle()); |
54 | 52 |
55 setIsModal(true); | 53 setIsModal(true); |
56 setShowModalMask(true); | 54 setShowModalMask(true); |
57 | 55 |