2013-10-29 15:18:16 +01:00
|
|
|
package org.gcube.portlets.user.td.sdmxexportwidget.client;
|
|
|
|
|
2013-10-29 16:17:13 +01:00
|
|
|
import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXExportSession;
|
2013-10-29 15:18:16 +01:00
|
|
|
import org.gcube.portlets.user.td.wizardwidget.client.WizardWindow;
|
|
|
|
|
|
|
|
import com.google.gwt.user.client.rpc.AsyncCallback;
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author "Giancarlo Panichi"
|
|
|
|
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
|
|
|
*
|
|
|
|
* Entry point classes define <code>onModuleLoad()</code>.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class SDMXExportWizardTD extends WizardWindow {
|
|
|
|
|
|
|
|
protected SDMXExportSession exportSession;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The id of the {@link CSVTarget} to use.
|
|
|
|
* @param targetId
|
|
|
|
*/
|
|
|
|
|
|
|
|
@SuppressWarnings({ "unchecked", "rawtypes" })
|
|
|
|
public SDMXExportWizardTD(String title) {
|
|
|
|
super(title);
|
|
|
|
setWidth(550);
|
|
|
|
setHeight(520);
|
|
|
|
|
|
|
|
exportSession= new SDMXExportSession();
|
|
|
|
|
|
|
|
SDMXExportWizardServiceAsync.INSTANCE.setSDMXSession(exportSession,new AsyncCallback() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onFailure(Throwable caught) {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onSuccess(Object result) {
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
SDMXAgencyTypeCard sdmxAgencyType= new SDMXAgencyTypeCard(exportSession);
|
|
|
|
addCard(sdmxAgencyType);
|
|
|
|
|
|
|
|
SDMXAgenciesSelectionCard sdmxAgenciesSelection= new SDMXAgenciesSelectionCard(exportSession);
|
|
|
|
addCard(sdmxAgenciesSelection);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|