Minor Update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-extractcodelist-widget@96241 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
276cb9eb0f
commit
6188b783ea
|
@ -17,9 +17,7 @@ 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.user.client.Command;
|
import com.google.gwt.user.client.Command;
|
||||||
import com.google.gwt.user.client.rpc.AsyncCallback;
|
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.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.ProgressBar;
|
||||||
import com.sencha.gxt.widget.core.client.box.AlertMessageBox;
|
import com.sencha.gxt.widget.core.client.box.AlertMessageBox;
|
||||||
import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData;
|
import com.sencha.gxt.widget.core.client.container.BoxLayoutContainer.BoxLayoutData;
|
||||||
|
@ -50,14 +48,12 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard implement
|
||||||
|
|
||||||
VBoxLayoutContainer operationInProgressPanel = new VBoxLayoutContainer();
|
VBoxLayoutContainer operationInProgressPanel = new VBoxLayoutContainer();
|
||||||
operationInProgressPanel.setVBoxLayoutAlign(VBoxLayoutAlign.CENTER);
|
operationInProgressPanel.setVBoxLayoutAlign(VBoxLayoutAlign.CENTER);
|
||||||
|
/*
|
||||||
final FlexTable description = new FlexTable();
|
final FlexTable description = new FlexTable();
|
||||||
// FlexCellFormatter cellFormatter = description.getFlexCellFormatter();
|
|
||||||
description.setCellSpacing(10);
|
description.setCellSpacing(10);
|
||||||
description.setCellPadding(4);
|
description.setCellPadding(4);
|
||||||
description.setBorderWidth(0);
|
description.setBorderWidth(0);
|
||||||
|
|
||||||
// display:block;vertical-align:text-top;
|
|
||||||
description.setHTML(0, 0,
|
description.setHTML(0, 0,
|
||||||
"<span style=\"font-weight:bold;\";>Name: </span>");
|
"<span style=\"font-weight:bold;\";>Name: </span>");
|
||||||
description.setText(0, 1, extractCodelistSession.getTabResource().getName());
|
description.setText(0, 1, extractCodelistSession.getTabResource().getName());
|
||||||
|
@ -73,8 +69,9 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard implement
|
||||||
summary.setHeadingText("Extract Summary");
|
summary.setHeadingText("Extract Summary");
|
||||||
summary.setWidth(400);
|
summary.setWidth(400);
|
||||||
summary.add(description);
|
summary.add(description);
|
||||||
|
|
||||||
operationInProgressPanel.add(summary, new BoxLayoutData(new Margins(20,
|
operationInProgressPanel.add(summary, new BoxLayoutData(new Margins(20,
|
||||||
5, 10, 5)));
|
5, 10, 5)));*/
|
||||||
|
|
||||||
ProgressBar progressBar = new ProgressBar();
|
ProgressBar progressBar = new ProgressBar();
|
||||||
operationInProgressPanel.add(progressBar, new BoxLayoutData(
|
operationInProgressPanel.add(progressBar, new BoxLayoutData(
|
||||||
|
@ -90,7 +87,7 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard implement
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// columnToImportMask
|
|
||||||
|
|
||||||
public void extractCodelist() {
|
public void extractCodelist() {
|
||||||
TDGWTServiceAsync.INSTANCE.startExtractCodelist(extractCodelistSession,
|
TDGWTServiceAsync.INSTANCE.startExtractCodelist(extractCodelistSession,
|
||||||
|
@ -136,7 +133,7 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard implement
|
||||||
}
|
}
|
||||||
|
|
||||||
public void operationComplete() {
|
public void operationComplete() {
|
||||||
// final String tableId,final String tableResourceId) {
|
|
||||||
|
|
||||||
Command sayComplete = new Command() {
|
Command sayComplete = new Command() {
|
||||||
public void execute() {
|
public void execute() {
|
||||||
|
@ -179,7 +176,7 @@ public class ExtractCodelistOperationInProgressCard extends WizardCard implement
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void operationStopped(TRId trId, String reason, String details) {
|
public void operationStopped(TRId trId, String reason, String details) {
|
||||||
// final String tableId,final String tableResourceId) {
|
|
||||||
|
|
||||||
Command sayComplete = new Command() {
|
Command sayComplete = new Command() {
|
||||||
public void execute() {
|
public void execute() {
|
||||||
|
|
|
@ -69,8 +69,11 @@ public class TargetColumnsSelectionCard extends WizardCard {
|
||||||
|
|
||||||
protected void goNext() {
|
protected void goNext() {
|
||||||
try {
|
try {
|
||||||
ExtractCodelistDetailsCard destCard= new ExtractCodelistDetailsCard(
|
/*ExtractCodelistDetailsCard destCard= new ExtractCodelistDetailsCard(
|
||||||
|
extractCodelistSession);*/
|
||||||
|
ExtractCodelistOperationInProgressCard destCard = new ExtractCodelistOperationInProgressCard(
|
||||||
extractCodelistSession);
|
extractCodelistSession);
|
||||||
|
Log.info("NextCard ExtractCodelistOperationInProgressCard");
|
||||||
getWizardWindow().addCard(destCard);
|
getWizardWindow().addCard(destCard);
|
||||||
getWizardWindow().nextCard();
|
getWizardWindow().nextCard();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue