Added Abort
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-monitor-widget@99439 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
78acc51e8b
commit
bff288d798
|
@ -58,10 +58,10 @@ public class MonitorDialog extends Window implements MonitorUpdaterListener {
|
||||||
protected ToolButton backgroundBtn;
|
protected ToolButton backgroundBtn;
|
||||||
|
|
||||||
protected ArrayList<MonitorDialogListener> listeners = new ArrayList<MonitorDialogListener>();
|
protected ArrayList<MonitorDialogListener> listeners = new ArrayList<MonitorDialogListener>();
|
||||||
|
protected ArrayList<MonitorDialogEventUIListener> monitorDialogEventUIListeners = new ArrayList<MonitorDialogEventUIListener>();
|
||||||
|
|
||||||
private MonitorDetailPanel monitorDetailPanel;
|
private MonitorDetailPanel monitorDetailPanel;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public MonitorDialog(String taskId, EventBus eventBus) {
|
public MonitorDialog(String taskId, EventBus eventBus) {
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
this.taskId=taskId;
|
this.taskId=taskId;
|
||||||
|
@ -228,6 +228,15 @@ public class MonitorDialog extends Window implements MonitorUpdaterListener {
|
||||||
public void removeProgressDialogListener(MonitorDialogListener listener) {
|
public void removeProgressDialogListener(MonitorDialogListener listener) {
|
||||||
listeners.remove(listener);
|
listeners.remove(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void addProgressDialogListener(MonitorDialogEventUIListener listener) {
|
||||||
|
monitorDialogEventUIListeners.add(listener);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void removeProgressDialogListener(MonitorDialogEventUIListener listener) {
|
||||||
|
monitorDialogEventUIListeners.remove(listener);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void monitorInitializing(OperationMonitor operationMonitor) {
|
public void monitorInitializing(OperationMonitor operationMonitor) {
|
||||||
|
@ -358,6 +367,17 @@ public class MonitorDialog extends Window implements MonitorUpdaterListener {
|
||||||
listener.operationPutInBackground();
|
listener.operationPutInBackground();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void fireRequestAborted(){
|
||||||
|
for(MonitorDialogEventUIListener listener: monitorDialogEventUIListeners){
|
||||||
|
listener.requestAborted();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void fireRequestPutInBackground(){
|
||||||
|
for(MonitorDialogEventUIListener listener: monitorDialogEventUIListeners){
|
||||||
|
listener.requestPutInBackground();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
|
|
|
@ -223,7 +223,7 @@ public class MonitorUpdater extends Timer implements MonitorDialogEventUIListene
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void requestAborted() {
|
public void requestAborted() {
|
||||||
// TODO Auto-generated method stub
|
operationMonitorSession.setAbort(true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue