Search in sources :

Example 1 with SpeciesListResults

use of au.org.ala.spatial.composer.results.SpeciesListResults in project spatial-portal by AtlasOfLivingAustralia.

the class SpeciesListComposer method onClick$btnDownload.

public void onClick$btnDownload() {
    SelectedArea sa = getSelectedArea();
    Map<String, Object> hm = new HashMap<String, Object>();
    hm.put("selectedarea", sa);
    hm.put("geospatialKosher", getGeospatialKosher());
    hm.put(StringConstants.CHOOSEENDEMIC, chkEndemicSpecies.isChecked());
    if (extraParams != null) {
        hm.put(StringConstants.EXTRAPARAMS, extraParams);
    }
    SpeciesListResults window = (SpeciesListResults) Executions.createComponents("WEB-INF/zul/results/AnalysisSpeciesListResults.zul", getMapComposer(), hm);
    try {
        window.setParent(getMapComposer());
        window.doModal();
    } catch (Exception e) {
        LOGGER.error("error opening analysisspecieslistresults.zul", e);
    }
    detach();
}
Also used : HashMap(java.util.HashMap) SpeciesListResults(au.org.ala.spatial.composer.results.SpeciesListResults) SelectedArea(au.org.emii.portal.menu.SelectedArea)

Aggregations

SpeciesListResults (au.org.ala.spatial.composer.results.SpeciesListResults)1 SelectedArea (au.org.emii.portal.menu.SelectedArea)1 HashMap (java.util.HashMap)1