Minor update
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-statistical-widget@101303 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
384bded80c
commit
548f23697f
|
@ -37,6 +37,7 @@ public class StatisticalWidget {
|
|||
|
||||
protected EventBus eventBus;
|
||||
protected TRId trId;
|
||||
protected StatisticalManagerExperimentsWidget statisticalManagerExperimentsWidget;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -123,20 +124,22 @@ public class StatisticalWidget {
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
protected void openStatisticalWidget(){
|
||||
ArrayList<ExternalTable> tables = new ArrayList<ExternalTable>();
|
||||
TDExternalTable tdExternalTable=new TDExternalTable(trId, eventBus, id, label,columns);
|
||||
tables.add(tdExternalTable);
|
||||
TDSubmissionHandler tdSubmissionHandler = new TDSubmissionHandler(trId,
|
||||
TDSubmissionHandler tdSubmissionHandler = new TDSubmissionHandler(this, trId,
|
||||
eventBus);
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
StatisticalManagerExperimentsWidget st = new StatisticalManagerExperimentsWidget(
|
||||
|
||||
statisticalManagerExperimentsWidget = new StatisticalManagerExperimentsWidget(
|
||||
null, tables, "ExecutionComputationDefault",
|
||||
tdSubmissionHandler);
|
||||
|
||||
}
|
||||
|
||||
|
||||
public void closeStatisticalWidget(){
|
||||
statisticalManagerExperimentsWidget.hide();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ public class TDExternalTable implements ExternalTable {
|
|||
|
||||
@Override
|
||||
public String getId() {
|
||||
return id;
|
||||
return "TableId [value="+id+"]";
|
||||
}
|
||||
@Override
|
||||
public String getLabel() {
|
||||
|
|
|
@ -7,6 +7,7 @@ import org.gcube.portlets.user.td.gwtservice.shared.statistical.StatisticalOpera
|
|||
import org.gcube.portlets.user.td.monitorwidget.client.MonitorDialog;
|
||||
import org.gcube.portlets.user.td.monitorwidget.client.MonitorDialogListener;
|
||||
import org.gcube.portlets.user.td.monitorwidget.client.utils.UtilsGXT3;
|
||||
import org.gcube.portlets.user.td.statisticalwidget.client.StatisticalWidget;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.ChangeTableRequestEvent;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.event.SessionExpiredEvent;
|
||||
import org.gcube.portlets.user.td.widgetcommonevent.client.type.ChangeTableRequestType;
|
||||
|
@ -31,8 +32,10 @@ public class TDSubmissionHandler implements SubmissionHandler,
|
|||
|
||||
protected EventBus eventBus;
|
||||
protected TRId trId;
|
||||
|
||||
public TDSubmissionHandler(TRId trId, EventBus eventBus) {
|
||||
protected StatisticalWidget statisticalWidget;
|
||||
|
||||
public TDSubmissionHandler(StatisticalWidget statisticalWidget, TRId trId, EventBus eventBus) {
|
||||
this.statisticalWidget=statisticalWidget;
|
||||
this.trId = trId;
|
||||
this.eventBus = eventBus;
|
||||
}
|
||||
|
@ -45,7 +48,8 @@ public class TDSubmissionHandler implements SubmissionHandler,
|
|||
UtilsGXT3.alert("Error", "Invalid params null");
|
||||
return;
|
||||
}
|
||||
|
||||
statisticalWidget.closeStatisticalWidget();
|
||||
|
||||
StatisticalOperationSession statisticalOperationSession = new StatisticalOperationSession(
|
||||
trId, params.getParametersMap(), params.getDescription(),
|
||||
params.getTitle(), params.getOp().getId(), params.getOp()
|
||||
|
|
Loading…
Reference in New Issue