Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapThemePanel.java @ 4739:5014a84c0c7d
Add "maptype" parameter to MapInfoService.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Wed, 02 Jan 2013 15:24:18 +0100 |
parents | 93e023131546 |
children | 06036bc6fb19 |
comparison
equal
deleted
inserted
replaced
4738:d93748043cbc | 4739:5014a84c0c7d |
---|---|
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.types.ListGridFieldType; | 5 import com.smartgwt.client.types.ListGridFieldType; |
5 import com.smartgwt.client.util.BooleanCallback; | 6 import com.smartgwt.client.util.BooleanCallback; |
6 import com.smartgwt.client.util.SC; | 7 import com.smartgwt.client.util.SC; |
7 import com.smartgwt.client.widgets.grid.ListGridField; | 8 import com.smartgwt.client.widgets.grid.ListGridField; |
8 import com.smartgwt.client.widgets.grid.ListGridRecord; | 9 import com.smartgwt.client.widgets.grid.ListGridRecord; |
173 | 174 |
174 MenuItem layerZoom = createLayerZoomItem(records); | 175 MenuItem layerZoom = createLayerZoomItem(records); |
175 if (layerZoom != null) { | 176 if (layerZoom != null) { |
176 menu.addItem(layerZoom); | 177 menu.addItem(layerZoom); |
177 } | 178 } |
179 //menu.addItem(createMapURLItem(records)); | |
178 | 180 |
179 return menu; | 181 return menu; |
182 } | |
183 | |
184 | |
185 protected MenuItem createMapURLItem(final ListGridRecord[] records) { | |
186 final FacetRecord fr = (FacetRecord) records[0]; | |
187 final AttributedTheme at = (AttributedTheme) fr.getTheme(); | |
188 | |
189 MenuItem item = new MenuItem("WMS URL"); | |
190 item.addClickHandler(new ClickHandler() { | |
191 @Override | |
192 public void onClick(MenuItemClickEvent evt) { | |
193 SC.say(at.getAttr("url")); | |
194 } | |
195 }); | |
196 | |
197 return item; | |
180 } | 198 } |
181 | 199 |
182 | 200 |
183 @Override | 201 @Override |
184 protected MenuItem createRemoveItem(final ListGridRecord[] records) { | 202 protected MenuItem createRemoveItem(final ListGridRecord[] records) { |