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
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author "Giancarlo Panichi"
|
|
|
|
* email: <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public interface MonitorDialogListener {
|
2014-08-01 19:50:58 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the operation is complete.
|
2015-01-29 18:30:37 +01:00
|
|
|
* @param operationResult TODO
|
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
|
|
|
*
|
2014-08-08 17:42:20 +02:00
|
|
|
* @param caught
|
|
|
|
* @param reason
|
2014-08-08 18:16:28 +02:00
|
|
|
* @param 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
|
2015-01-29 18:30:37 +01:00
|
|
|
* @param operationResult TODO
|
2014-08-01 19:50:58 +02:00
|
|
|
* @param reason
|
|
|
|
* @param details
|
|
|
|
*/
|
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
|
|
|
|
|
|
|
}
|