Updated wizard

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-sdmx-import-widget@86243 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2013-11-27 09:13:20 +00:00 committed by Giancarlo Panichi
parent ea47ce3427
commit 2e396928e5
9 changed files with 22 additions and 22 deletions

View File

@ -9,7 +9,7 @@ import java.util.List;
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync; import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
import org.gcube.portlets.user.td.gwtservice.shared.tr.type.Codelist; import org.gcube.portlets.user.td.gwtservice.shared.tr.type.Codelist;
import org.gcube.portlets.user.td.sdmximportwidget.client.dataresource.ResourceBundle; import org.gcube.portlets.user.td.wizardwidget.client.dataresource.ResourceBundle;
import com.allen_sauer.gwt.log.client.Log; import com.allen_sauer.gwt.log.client.Log;
@ -89,7 +89,7 @@ public class CodelistSelectionPanel extends ContentPanel implements HasSelection
TextButton btnReload = new TextButton(); TextButton btnReload = new TextButton();
//btnReload.setText("Reload"); //btnReload.setText("Reload");
btnReload.setIcon(res.refresh_16()); btnReload.setIcon(res.refresh16());
btnReload.setToolTip("Reload"); btnReload.setToolTip("Reload");
toolBar.add(btnReload); toolBar.add(btnReload);

View File

@ -5,7 +5,7 @@ package org.gcube.portlets.user.td.sdmximportwidget.client;
import org.gcube.portlets.user.td.gwtservice.shared.tr.type.Codelist; import org.gcube.portlets.user.td.gwtservice.shared.tr.type.Codelist;
import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession; import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession;
import org.gcube.portlets.user.td.sdmximportwidget.client.general.WizardCard; import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
import com.allen_sauer.gwt.log.client.Log; import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.event.logical.shared.SelectionEvent; import com.google.gwt.event.logical.shared.SelectionEvent;

View File

@ -4,7 +4,7 @@
package org.gcube.portlets.user.td.sdmximportwidget.client; package org.gcube.portlets.user.td.sdmximportwidget.client;
import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession; import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession;
import org.gcube.portlets.user.td.sdmximportwidget.client.general.WizardCard; import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
import com.allen_sauer.gwt.log.client.Log; import com.allen_sauer.gwt.log.client.Log;

View File

@ -6,7 +6,7 @@ package org.gcube.portlets.user.td.sdmximportwidget.client;
import org.gcube.portlets.user.td.gwtservice.shared.document.CodelistDocument; import org.gcube.portlets.user.td.gwtservice.shared.document.CodelistDocument;
import org.gcube.portlets.user.td.gwtservice.shared.document.DatasetDocument; import org.gcube.portlets.user.td.gwtservice.shared.document.DatasetDocument;
import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession; import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession;
import org.gcube.portlets.user.td.sdmximportwidget.client.general.WizardCard; import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
import com.allen_sauer.gwt.log.client.Log; import com.allen_sauer.gwt.log.client.Log;
@ -38,20 +38,20 @@ public class SDMXDocumentSelectionCard extends WizardCard {
importSession.setSDMXDocument(codelist); importSession.setSDMXDocument(codelist);
VerticalPanel documentSelectionPanel = new VerticalPanel(); VerticalPanel documentSelectionPanel = new VerticalPanel();
documentSelectionPanel.setStylePrimaryName(res.sdmxImportCss().getImportSelectionSources()); documentSelectionPanel.setStylePrimaryName(res.wizardCSS().getImportSelectionSources());
Radio radioCodelist = new Radio(); Radio radioCodelist = new Radio();
radioCodelist.setBoxLabel("<p style='display:inline-table;'><b>"+codelist.getName()+"</b><br>"+codelist.getDescription()+"</p>"); radioCodelist.setBoxLabel("<p style='display:inline-table;'><b>"+codelist.getName()+"</b><br>"+codelist.getDescription()+"</p>");
radioCodelist.setValue(true); radioCodelist.setValue(true);
radioCodelist.setName(codelist.getName()); radioCodelist.setName(codelist.getName());
radioCodelist.setStylePrimaryName(res.sdmxImportCss().getImportSelectionSource()); radioCodelist.setStylePrimaryName(res.wizardCSS().getImportSelectionSource());
Radio radioDataSet = new Radio(); Radio radioDataSet = new Radio();
radioDataSet.setBoxLabel("<p style='display:inline-table;'><b>"+dataset.getName()+"</b><br>"+dataset.getDescription()+"</p>"); radioDataSet.setBoxLabel("<p style='display:inline-table;'><b>"+dataset.getName()+"</b><br>"+dataset.getDescription()+"</p>");
radioDataSet.setName(dataset.getName()); radioDataSet.setName(dataset.getName());
radioDataSet.setStylePrimaryName(res.sdmxImportCss().getImportSelectionSource()); radioDataSet.setStylePrimaryName(res.wizardCSS().getImportSelectionSource());
radioDataSet.disable(); radioDataSet.disable();
documentSelectionPanel.add(radioCodelist); documentSelectionPanel.add(radioCodelist);

View File

@ -1,7 +1,7 @@
package org.gcube.portlets.user.td.sdmximportwidget.client; package org.gcube.portlets.user.td.sdmximportwidget.client;
import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession; import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession;
import org.gcube.portlets.user.td.sdmximportwidget.client.general.WizardWindow; import org.gcube.portlets.user.td.wizardwidget.client.WizardWindow;

View File

@ -7,7 +7,7 @@ import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
import org.gcube.portlets.user.td.gwtservice.shared.tr.TRId; import org.gcube.portlets.user.td.gwtservice.shared.tr.TRId;
import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession; import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession;
import org.gcube.portlets.user.td.gwtservice.shared.source.SDMXRegistrySource; import org.gcube.portlets.user.td.gwtservice.shared.source.SDMXRegistrySource;
import org.gcube.portlets.user.td.sdmximportwidget.client.general.WizardCard; import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
import org.gcube.portlets.user.td.sdmximportwidget.client.progress.ImportProgressBarUpdater; import org.gcube.portlets.user.td.sdmximportwidget.client.progress.ImportProgressBarUpdater;
import org.gcube.portlets.user.td.sdmximportwidget.client.progress.OperationProgressListener; import org.gcube.portlets.user.td.sdmximportwidget.client.progress.OperationProgressListener;
import org.gcube.portlets.user.td.sdmximportwidget.client.progress.OperationProgressUpdater; import org.gcube.portlets.user.td.sdmximportwidget.client.progress.OperationProgressUpdater;

View File

@ -6,7 +6,7 @@ package org.gcube.portlets.user.td.sdmximportwidget.client;
import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync; import org.gcube.portlets.user.td.gwtservice.client.rpc.TDGWTServiceAsync;
import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession; import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession;
import org.gcube.portlets.user.td.gwtservice.shared.source.SDMXRegistrySource; import org.gcube.portlets.user.td.gwtservice.shared.source.SDMXRegistrySource;
import org.gcube.portlets.user.td.sdmximportwidget.client.general.WizardCard; import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
import com.allen_sauer.gwt.log.client.Log; import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.dom.client.Element; import com.google.gwt.dom.client.Element;
@ -44,7 +44,7 @@ public class SDMXRegistrySelectionCard extends WizardCard {
thisCard = this; thisCard = this;
VerticalPanel registrySelectionPanel = new VerticalPanel(); VerticalPanel registrySelectionPanel = new VerticalPanel();
registrySelectionPanel.setStylePrimaryName(res.sdmxImportCss() registrySelectionPanel.setStylePrimaryName(res.wizardCSS()
.getImportSelectionSources()); .getImportSelectionSources());
Radio radioStandardRegistry = new Radio(); Radio radioStandardRegistry = new Radio();
@ -54,26 +54,26 @@ public class SDMXRegistrySelectionCard extends WizardCard {
+ "<br>Select this if you want use the Internal Registry</p>"); + "<br>Select this if you want use the Internal Registry</p>");
radioStandardRegistry.setValue(true); radioStandardRegistry.setValue(true);
radioStandardRegistry.setName("Default"); radioStandardRegistry.setName("Default");
radioStandardRegistry.setStylePrimaryName(res.sdmxImportCss() radioStandardRegistry.setStylePrimaryName(res.wizardCSS()
.getImportSelectionSource()); .getImportSelectionSource());
Radio radioUrlRegistry = new Radio(); Radio radioUrlRegistry = new Radio();
radioUrlRegistry radioUrlRegistry
.setBoxLabel("<p style='display:inline-table;'><b>Another SDMX Registry</b><br><SPAN id='SDMXRegistryUrl'></SPAN></p>"); .setBoxLabel("<p style='display:inline-table;'><b>Another SDMX Registry</b><br><SPAN id='SDMXRegistryUrl'></SPAN></p>");
radioUrlRegistry.setName("Url"); radioUrlRegistry.setName("Url");
radioUrlRegistry.setStylePrimaryName(res.sdmxImportCss() radioUrlRegistry.setStylePrimaryName(res.wizardCSS()
.getImportSelectionSource()); .getImportSelectionSource());
radioUrlRegistry.disable(); radioUrlRegistry.disable();
url.setName("sdmxRegistryUrlInpuntField"); url.setName("sdmxRegistryUrlInpuntField");
url.setId("sdmxRegistryUrlInputFieldId"); url.setId("sdmxRegistryUrlInputFieldId");
url.setStylePrimaryName(res.sdmxImportCss() url.setStylePrimaryName(res.wizardCSS()
.getSDMXRegistryUrlInputStyle()); .getSDMXRegistryUrlInputStyle());
final VerticalLayoutContainer vcontainer = new VerticalLayoutContainer(); final VerticalLayoutContainer vcontainer = new VerticalLayoutContainer();
vcontainer.add(new FieldLabel(url, "URL"), new VerticalLayoutData(-1, vcontainer.add(new FieldLabel(url, "URL"), new VerticalLayoutData(-1,
-1)); -1));
vcontainer.setStylePrimaryName(res.sdmxImportCss() vcontainer.setStylePrimaryName(res.wizardCSS()
.getSDMXRegistryUrlStyle()); .getSDMXRegistryUrlStyle());
vcontainer.setVisible(false); vcontainer.setVisible(false);

View File

@ -5,7 +5,7 @@ package org.gcube.portlets.user.td.sdmximportwidget.client;
import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource; import org.gcube.portlets.user.td.gwtservice.shared.tr.TabResource;
import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession; import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession;
import org.gcube.portlets.user.td.sdmximportwidget.client.general.WizardCard; import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
import com.allen_sauer.gwt.log.client.Log; import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.GWT;

View File

@ -8,7 +8,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.sdmx.SDMXImportSession;
import org.gcube.portlets.user.td.gwtservice.shared.source.FileSource; import org.gcube.portlets.user.td.gwtservice.shared.source.FileSource;
import org.gcube.portlets.user.td.gwtservice.shared.source.SDMXRegistrySource; import org.gcube.portlets.user.td.gwtservice.shared.source.SDMXRegistrySource;
import org.gcube.portlets.user.td.gwtservice.shared.source.WorkspaceSource; import org.gcube.portlets.user.td.gwtservice.shared.source.WorkspaceSource;
import org.gcube.portlets.user.td.sdmximportwidget.client.general.WizardCard; import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
import com.allen_sauer.gwt.log.client.Log; import com.allen_sauer.gwt.log.client.Log;
@ -43,25 +43,25 @@ public class SourceSelectionCard extends WizardCard {
importSession.setSource(sdmxRegistrySource); importSession.setSource(sdmxRegistrySource);
VerticalPanel sourceSelectionPanel = new VerticalPanel(); VerticalPanel sourceSelectionPanel = new VerticalPanel();
sourceSelectionPanel.setStylePrimaryName(res.sdmxImportCss().getImportSelectionSources()); sourceSelectionPanel.setStylePrimaryName(res.wizardCSS().getImportSelectionSources());
Radio radioSDMXRegistrySource = new Radio(); Radio radioSDMXRegistrySource = new Radio();
radioSDMXRegistrySource.setBoxLabel("<p style='display:inline-table;'><b>"+sdmxRegistrySource.getName()+"</b><br>"+sdmxRegistrySource.getDescription()+"</p>"); radioSDMXRegistrySource.setBoxLabel("<p style='display:inline-table;'><b>"+sdmxRegistrySource.getName()+"</b><br>"+sdmxRegistrySource.getDescription()+"</p>");
radioSDMXRegistrySource.setValue(true); radioSDMXRegistrySource.setValue(true);
radioSDMXRegistrySource.setName(sdmxRegistrySource.getName()); radioSDMXRegistrySource.setName(sdmxRegistrySource.getName());
radioSDMXRegistrySource.setStylePrimaryName(res.sdmxImportCss().getImportSelectionSource()); radioSDMXRegistrySource.setStylePrimaryName(res.wizardCSS().getImportSelectionSource());
Radio radioWorkspaceSource = new Radio(); Radio radioWorkspaceSource = new Radio();
radioWorkspaceSource.setBoxLabel("<p style='display:inline-table;'><b>"+workspaceSource.getName()+"</b><br>"+workspaceSource.getDescription()+"</p>"); radioWorkspaceSource.setBoxLabel("<p style='display:inline-table;'><b>"+workspaceSource.getName()+"</b><br>"+workspaceSource.getDescription()+"</p>");
radioWorkspaceSource.setName(workspaceSource.getName()); radioWorkspaceSource.setName(workspaceSource.getName());
radioWorkspaceSource.setStylePrimaryName(res.sdmxImportCss().getImportSelectionSource()); radioWorkspaceSource.setStylePrimaryName(res.wizardCSS().getImportSelectionSource());
radioWorkspaceSource.disable(); radioWorkspaceSource.disable();
Radio radioFileSource = new Radio(); Radio radioFileSource = new Radio();
radioFileSource.setBoxLabel("<p style='display:inline-table;'><b>"+fileSource.getName()+"</b><br>"+fileSource.getDescription()+"</p>"); radioFileSource.setBoxLabel("<p style='display:inline-table;'><b>"+fileSource.getName()+"</b><br>"+fileSource.getDescription()+"</p>");
radioFileSource.setName(fileSource.getName()); radioFileSource.setName(fileSource.getName());
radioFileSource.setStylePrimaryName(res.sdmxImportCss().getImportSelectionSource()); radioFileSource.setStylePrimaryName(res.wizardCSS().getImportSelectionSource());
radioFileSource.disable(); radioFileSource.disable();
sourceSelectionPanel.add(radioSDMXRegistrySource); sourceSelectionPanel.add(radioSDMXRegistrySource);