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.IsWidget
Interface defining a single layer selection widget. This is not part of theGodivaStateInfo
group, 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 String
getSelectedId()
List<String>
getTitleElements()
String
getWmsUrl()
void
populateLayers(LayerMenuItem topItem)
Populate the menu treevoid
selectLayer(String id, String wmsUrl, boolean autoZoomAndPalette)
Sets the selected layervoid
setEnabled(boolean enabled)
Enables/disables the layer selector
-
-
-
Method Detail
-
populateLayers
void populateLayers(LayerMenuItem topItem)
Populate the menu tree- Parameters:
topItem
- ALayerMenuItem
representing 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
-
-