2014-08-01 19:50:58 +02:00
|
|
|
package org.gcube.portlets.user.td.monitorwidget.client;
|
|
|
|
|
|
|
|
|
2015-01-29 18:30:37 +01:00
|
|
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.OperationResult;
|
2014-08-01 19:50:58 +02:00
|
|
|
|
2014-08-08 16:39:25 +02:00
|
|
|
/**
|
|
|
|
*
|
2017-05-30 12:13:29 +02:00
|
|
|
* @author Giancarlo Panichi
|
|
|
|
*
|
2014-08-08 16:39:25 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public interface MonitorDialogListener {
|
2014-08-01 19:50:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the operation is complete.
|
2017-05-30 12:13:29 +02:00
|
|
|
* @param operationResult Operation result
|
2014-08-01 19:50:58 +02:00
|
|
|
*/
|
2015-01-29 18:30:37 +01:00
|
|
|
public void operationComplete(OperationResult operationResult);
|
2014-08-01 19:50:58 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the operation is failed.
|
2014-08-08 18:16:28 +02:00
|
|
|
*
|
2017-05-30 12:13:29 +02:00
|
|
|
* @param caught Error
|
|
|
|
* @param reason Reason
|
|
|
|
* @param details Details
|
2014-08-01 19:50:58 +02:00
|
|
|
*/
|
2014-08-08 18:16:28 +02:00
|
|
|
public void operationFailed(Throwable caught, String reason, String details);
|
2014-08-01 19:50:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the operation is stopped
|
2017-05-30 12:13:29 +02:00
|
|
|
*
|
|
|
|
* @param operationResult Operation result
|
|
|
|
* @param reason Reason
|
|
|
|
* @param details Details
|
2014-08-01 19:50:58 +02:00
|
|
|
*/
|
2015-01-29 18:30:37 +01:00
|
|
|
public void operationStopped(OperationResult operationResult, String reason, String details);
|
2014-08-01 19:50:58 +02:00
|
|
|
|
|
|
|
|
2014-08-08 16:39:25 +02:00
|
|
|
/**
|
|
|
|
* Called when the operation is aborted
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public void operationAborted();
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the operation is put in the background
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public void operationPutInBackground();
|
2014-08-01 19:50:58 +02:00
|
|
|
|
|
|
|
}
|