64 lines
1.4 KiB
Java
64 lines
1.4 KiB
Java
/**
|
|
*
|
|
*/
|
|
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.core.client.GWT;
|
|
import com.google.gwt.user.client.Command;
|
|
|
|
/**
|
|
*
|
|
* @author Giancarlo Panichi Panichi
|
|
*
|
|
*
|
|
*/
|
|
public class DownloadFileCard extends WizardCard {
|
|
//private CSVExportSession exportSession;
|
|
private static CSVExportWizardTDMessages msgs = GWT.create(CSVExportWizardTDMessages.class);
|
|
private DownloadFileCard thisCard;
|
|
|
|
public DownloadFileCard(final CSVExportSession exportSession) {
|
|
super(msgs.downloadFileCardHead(), "");
|
|
this.thisCard = this;
|
|
//this.exportSession = exportSession;
|
|
|
|
|
|
|
|
//setContent();
|
|
|
|
}
|
|
|
|
@Override
|
|
public void setup() {
|
|
Command sayNextCard = new Command() {
|
|
|
|
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);
|
|
}
|
|
|
|
}
|