Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-extractcodelist-widget@96392 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
e981a7495f
commit
af055377d5
|
@ -17,7 +17,9 @@ import org.gcube.portlets.user.td.wizardwidget.client.WizardCard;
|
|||
import com.allen_sauer.gwt.log.client.Log;
|
||||
import com.google.gwt.user.client.Command;
|
||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
||||
import com.google.gwt.user.client.ui.FlexTable;
|
||||
import com.sencha.gxt.core.client.util.Margins;
|
||||
import com.sencha.gxt.widget.core.client.FramedPanel;
|
||||
import com.sencha.gxt.widget.core.client.ProgressBar;
|
||||
import com.sencha.gxt.widget.core.client.box.AlertMessageBox;
|
||||
import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData;
|
||||
|
@ -39,7 +41,8 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard implement
|
|||
protected ExtractCodelistOperationInProgressCard thisCard;
|
||||
protected ExtractCodelistSession extractCodelistSession;
|
||||
protected ExtractCodelistProgressUpdater progressUpdater;
|
||||
|
||||
protected final FlexTable description;
|
||||
|
||||
public ExtractCodelistOperationInProgressCard(final ExtractCodelistSession extractCodelistSession) {
|
||||
super("Operation In Progress", "");
|
||||
|
||||
|
@ -48,31 +51,7 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard implement
|
|||
|
||||
VBoxLayoutContainer operationInProgressPanel = new VBoxLayoutContainer();
|
||||
operationInProgressPanel.setVBoxLayoutAlign(VBoxLayoutAlign.CENTER);
|
||||
/*
|
||||
final FlexTable description = new FlexTable();
|
||||
description.setCellSpacing(10);
|
||||
description.setCellPadding(4);
|
||||
description.setBorderWidth(0);
|
||||
|
||||
description.setHTML(0, 0,
|
||||
"<span style=\"font-weight:bold;\";>Name: </span>");
|
||||
description.setText(0, 1, extractCodelistSession.getTabResource().getName());
|
||||
description.setHTML(1, 0,
|
||||
"<span style=\"font-weight:bold;\";>Agency: </span>");
|
||||
description.setText(1, 1, extractCodelistSession.getTabResource().getAgency());
|
||||
|
||||
description.setHTML(2, 0,
|
||||
"<span style=\"font-weight:bold;\";>File Description: </span>");
|
||||
description.setText(2, 1, extractCodelistSession.getTabResource().getRight());
|
||||
|
||||
FramedPanel summary = new FramedPanel();
|
||||
summary.setHeadingText("Extract Summary");
|
||||
summary.setWidth(400);
|
||||
summary.add(description);
|
||||
|
||||
operationInProgressPanel.add(summary, new BoxLayoutData(new Margins(20,
|
||||
5, 10, 5)));*/
|
||||
|
||||
ProgressBar progressBar = new ProgressBar();
|
||||
operationInProgressPanel.add(progressBar, new BoxLayoutData(
|
||||
new Margins(10, 30, 10, 5)));
|
||||
|
@ -82,8 +61,28 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard implement
|
|||
.addListener(new ExtractCodelistProgressBarUpdater(progressBar));
|
||||
|
||||
progressUpdater.addListener(this);
|
||||
|
||||
|
||||
|
||||
description = new FlexTable();
|
||||
description.setCellSpacing(10);
|
||||
description.setCellPadding(4);
|
||||
description.setBorderWidth(0);
|
||||
|
||||
description.setHTML(0, 0,
|
||||
"The Codelists is available in the list of yours tabular resources");
|
||||
|
||||
FramedPanel summary = new FramedPanel();
|
||||
summary.setHeadingText("Operation Completed");
|
||||
summary.setWidth(400);
|
||||
summary.add(description);
|
||||
|
||||
operationInProgressPanel.add(summary, new BoxLayoutData(new Margins(20,
|
||||
5, 10, 5)));
|
||||
|
||||
|
||||
setContent(operationInProgressPanel);
|
||||
description.setVisible(false);
|
||||
|
||||
}
|
||||
|
||||
|
@ -134,7 +133,7 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard implement
|
|||
|
||||
@Override
|
||||
public void operationComplete(final TRId trId) {
|
||||
|
||||
description.setVisible(true);
|
||||
|
||||
Command sayComplete = new Command() {
|
||||
public void execute() {
|
||||
|
|
Loading…
Reference in New Issue