Exemple #1
0
  /** Create the data choices associated with this source. */
  protected void doMakeDataChoices() {
    layerList = new ArrayList();
    for (int i = 0; i < wmsSelections.size(); i++) {
      WmsSelection selection = (WmsSelection) wmsSelections.get(i);
      layerList.add(new TwoFacedObject(selection.getTitle(), selection.getLayer()));
    }
    for (int i = 0; i < wmsSelections.size(); i++) {
      Hashtable properties = new Hashtable();
      properties.put(PROP_LAYERS, layerList);
      properties.put(PROP_LAYER, layerList.get(i));
      properties.put(DataChoice.PROP_ICON, "/auxdata/ui/icons/Earth16.gif");
      WmsSelection selection = (WmsSelection) wmsSelections.get(i);

      addDataChoice(
          new DirectDataChoice(
              this, selection, selection.toString(), selection.toString(), categories, properties));
    }
  }