You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.3 KiB
Java
63 lines
1.3 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.portlets.user.td.jsonexportwidget.client;
|
|
|
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.json.JSONExportSession;
|
|
|
|
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" <a
|
|
* href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
|
*
|
|
*/
|
|
public class DownloadFileCard extends WizardCard {
|
|
protected JSONExportSession exportSession;
|
|
protected DownloadFileCard thisCard;
|
|
|
|
public DownloadFileCard(final JSONExportSession exportSession) {
|
|
super("Download File", "");
|
|
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);
|
|
}
|
|
|
|
}
|