use of au.org.ala.spatial.composer.input.UploadToSpeciesListController in project spatial-portal by AtlasOfLivingAustralia.
the class ToolComposer method showExportSpeciesListDialog.
/**
* Shows a "create species list" dialog for the supplied list box
*
* @param lb
*/
private void showExportSpeciesListDialog(Listbox lb) {
String values = getScientificName(lb);
LOGGER.debug("Creating species list with " + values);
if (values.length() > 0) {
UploadToSpeciesListController dialog = (UploadToSpeciesListController) Executions.createComponents("WEB-INF/zul/input/UploadToSpeciesList.zul", this, null);
dialog.setSpecies(values);
dialog.setCallback(new EventListener() {
@Override
public void onEvent(Event event) throws Exception {
updateSpeciesListMessage((String) event.getData());
}
});
try {
dialog.setParent(this);
dialog.doModal();
} catch (Exception e) {
LOGGER.error("Unable to export assemblage", e);
}
}
}
use of au.org.ala.spatial.composer.input.UploadToSpeciesListController in project spatial-portal by AtlasOfLivingAustralia.
the class AddSpeciesController method showExportSpeciesListDialog.
private void showExportSpeciesListDialog() {
String values = getScientificName();
LOGGER.debug("Creating species list with " + values);
if (values.length() > 0) {
UploadToSpeciesListController dialog = (UploadToSpeciesListController) Executions.createComponents("WEB-INF/zul/input/UploadToSpeciesList.zul", this, null);
dialog.setSpecies(values);
dialog.setCallback(new EventListener() {
@Override
public void onEvent(Event event) throws Exception {
updateSpeciesListMessage((String) event.getData());
}
});
try {
dialog.setParent(this);
dialog.doModal();
} catch (Exception e) {
LOGGER.error("Unable to export assemblage", e);
}
}
}
Aggregations