package org.gcube.portlets.user.td.openwidget.client; import org.gcube.portlets.user.td.wizardwidget.client.WizardWindow; import org.gcube.portlets.user.td.wizardwidget.client.dataresource.ResourceBundle; import org.gcube.portlets.user.td.gwtservice.shared.tr.open.TDOpenSession; import com.allen_sauer.gwt.log.client.Log; import com.google.web.bindery.event.shared.EventBus; import com.sencha.gxt.cell.core.client.ButtonCell.IconAlign; /** * * @author "Giancarlo Panichi" * g.panichi@isti.cnr.it * */ public class TDOpen extends WizardWindow { protected static final int WITHWIZARD=720; protected static final int HEIGHTWIZARD=520; protected TDOpenSession tdOpenSession; /** * The id of the {@link CSVTarget} to use. * @param targetId */ public TDOpen(String title,EventBus eventBus) { super(title,eventBus); Log.info("TDOpen: "+title); setWidth(WITHWIZARD); setHeight(HEIGHTWIZARD); BUTTONNEXTLABEL="Open"; nextButton.setText(BUTTONNEXTLABEL); nextButton.setIcon(ResourceBundle.INSTANCE.wizardGo()); nextButton.setIconAlign(IconAlign.RIGHT); setEnableNextButton(false); tdOpenSession= new TDOpenSession(); TabResourcesSelectionCard tabResourcesSelection= new TabResourcesSelectionCard(tdOpenSession); addCard(tabResourcesSelection); tabResourcesSelection.setup(); } }