2014-06-03 16:33:12 +02:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.portlets.user.td.codelistmappingimportwidget.client.progress;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Defines a listener for operation progress.
|
|
|
|
*
|
2018-06-27 14:28:07 +02:00
|
|
|
* @author Giancarlo Panichi
|
|
|
|
*
|
2014-06-03 16:33:12 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
public interface FileUploadProgressListener {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the operation is complete.
|
|
|
|
*/
|
|
|
|
public void operationComplete();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when the operation is failed.
|
2018-06-27 14:28:07 +02:00
|
|
|
*
|
|
|
|
* @param caught Error
|
|
|
|
* @param reason Reason
|
|
|
|
* @param failureDetails Error details
|
2014-06-03 16:33:12 +02:00
|
|
|
*/
|
|
|
|
public void operationFailed(Throwable caught, String reason, String failureDetails);
|
|
|
|
}
|