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 the GodivaStateInfo group, and is probably not useful for a multi-layer system
    Author:
    Guy Griffiths
    • Method Detail

      • populateLayers

        void populateLayers​(LayerMenuItem topItem)
        Populate the menu tree
        Parameters:
        topItem - A LayerMenuItem 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 ID
        wmsUrl - The corresponding WMS URL
        autoZoomAndPalette - 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