2014-03-07 18:00:44 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.portlets.user.td.tablewidget.client.progress;
|
|
|
|
|
|
|
|
import org.gcube.portlets.user.td.widgetcommonevent.shared.TRId;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines a listener for operation progress.
|
|
|
|
*
|
|
|
|
* @author "Giancarlo Panichi"
|
|
|
|
* <a href="mailto:g.panichi@isti.cnr.it">g.panichi@isti.cnr.it</a>
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public interface DuplicatesRowsProgressListener {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the operation is starting.
|
|
|
|
*/
|
|
|
|
public void operationInitializing();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when there is a progress for the operation.
|
|
|
|
* @param elaborated the elaborated part.
|
|
|
|
*/
|
|
|
|
public void operationUpdate(float elaborated);
|
|
|
|
|
2014-05-02 10:47:59 +02:00
|
|
|
/**
|
|
|
|
* Called when there is a validate for the operation.
|
|
|
|
* @param elaborated the elaborated part.
|
|
|
|
*/
|
|
|
|
public void operationValidate(float elaborated);
|
2014-03-07 18:00:44 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the operation is complete.
|
|
|
|
*/
|
|
|
|
public void operationComplete(TRId trId);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the operation is failed.
|
|
|
|
* @param caught the failure exception.
|
|
|
|
* @param reason the failure reason.
|
|
|
|
*/
|
|
|
|
public void operationFailed(Throwable caught, String reason, String failureDetails);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the operation is stopped
|
|
|
|
*
|
|
|
|
* @param trId
|
|
|
|
* @param reason
|
|
|
|
* @param details
|
|
|
|
*/
|
|
|
|
public void operationStopped(TRId trId, String reason, String details);
|
2014-04-30 11:59:44 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the operation is generating the view
|
|
|
|
*/
|
|
|
|
public void operationGeneratingView();
|
2014-03-07 18:00:44 +01:00
|
|
|
|
|
|
|
}
|