Interface LayerSelectorIF
-
- All Superinterfaces:
com.google.gwt.user.client.ui.IsWidget
- All Known Implementing Classes:
LayerSelectorCombo,LayerSelectorTree
public interface LayerSelectorIF extends com.google.gwt.user.client.ui.IsWidgetInterface defining a single layer selection widget. This is not part of theGodivaStateInfogroup, and is probably not useful for a multi-layer system- Author:
- Guy Griffiths
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetSelectedId()List<String>getTitleElements()StringgetWmsUrl()voidpopulateLayers(LayerMenuItem topItem)Populate the menu treevoidselectLayer(String id, String wmsUrl, boolean autoZoomAndPalette)Sets the selected layervoidsetEnabled(boolean enabled)Enables/disables the layer selector
-
-
-
Method Detail
-
populateLayers
void populateLayers(LayerMenuItem topItem)
Populate the menu tree- Parameters:
topItem- ALayerMenuItemrepresenting the top level menu item
-
getSelectedId
String getSelectedId()
- Returns:
- The currently selected layer ID
-
selectLayer
void selectLayer(String id, String wmsUrl, boolean autoZoomAndPalette)
Sets the selected layer- Parameters:
id- The layer IDwmsUrl- The corresponding WMS URLautoZoomAndPalette- Whether or not to automatically zoom and set the palette after selecting the layer
-
setEnabled
void setEnabled(boolean enabled)
Enables/disables the layer selector
-
getTitleElements
List<String> getTitleElements()
- Returns:
- A list of string elements which define where we are in the menu tree. This is used for generating titles
-
getWmsUrl
String getWmsUrl()
- Returns:
- The WMS URL of the currently selected layer
-
-