From 4250f9a858b350f470532fcbe665a962817772da Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Mon, 18 Nov 2013 13:32:39 +0000 Subject: [PATCH] Minor updated git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-export-widget@85614 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/DownloadFileCard.java | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/DownloadFileCard.java diff --git a/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/DownloadFileCard.java b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/DownloadFileCard.java new file mode 100644 index 0000000..a0e839b --- /dev/null +++ b/src/main/java/org/gcube/portlets/user/td/csvexportwidget/client/DownloadFileCard.java @@ -0,0 +1,62 @@ +/** + * + */ +package org.gcube.portlets.user.td.csvexportwidget.client; + + +import org.gcube.portlets.user.td.gwtservice.shared.csv.CSVExportSession; + +import org.gcube.portlets.user.td.wizardwidget.client.WizardCard; + +import com.allen_sauer.gwt.log.client.Log; +import com.google.gwt.user.client.Command; + +/** + * + * @author "Giancarlo Panichi" g.panichi@isti.cnr.it + * + */ +public class DownloadFileCard extends WizardCard { + protected CSVExportSession exportSession; + protected DownloadFileCard thisCard; + + public DownloadFileCard(final CSVExportSession exportSession) { + super("Download File", ""); + this.thisCard = this; + this.exportSession = exportSession; + + + + //setContent(); + + } + + @Override + public void setup() { + Command sayNextCard = new Command() { + @Override + public void execute() { + } + + }; + + getWizardWindow().setNextButtonCommand(sayNextCard); + + Command sayPreviousCard = new Command() { + public void execute() { + try { + getWizardWindow().previousCard(); + getWizardWindow().removeCard(thisCard); + Log.info("Remove DownloadFileCard"); + } catch (Exception e) { + Log.error("sayPreviousCard :" + e.getLocalizedMessage()); + } + } + }; + + getWizardWindow().setPreviousButtonCommand(sayPreviousCard); + getWizardWindow().setEnableNextButton(false); + } + +}