Updated progress bar

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-export-widget@95252 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-04-30 09:35:59 +00:00
parent 6c8dfb000f
commit e1bff4ae2a
4 changed files with 27 additions and 1 deletions

View File

@ -183,4 +183,10 @@ public class CSVOperationInProgressCard extends WizardCard implements
}
@Override
public void operationGeneratingView() {
// TODO Auto-generated method stub
}
}

View File

@ -73,5 +73,12 @@ public class CSVExportProgressBarUpdater implements CSVExportProgressListener {
progressBar.updateText("Validations failed");
}
@Override
public void operationGeneratingView() {
Log.info("Generating View...");
progressBar.updateText("Generating View...");
}
}

View File

@ -49,6 +49,10 @@ public interface CSVExportProgressListener {
* @param details
*/
public void operationStopped(TRId trId, String reason, String details);
/**
* Called when the operation is generating the view
*/
public void operationGeneratingView();
}

View File

@ -61,6 +61,10 @@ public class CSVExportProgressUpdater extends Timer {
case VALIDATING_RULES:
fireOperationUpdate(result.getProgress());
break;
case GENERATING_VIEW:
Log.info("Generating View...");
fireOperationGeneratingView();
break;
case FAILED:
cancel();
errorMessage(result);
@ -132,6 +136,11 @@ public class CSVExportProgressUpdater extends Timer {
for (CSVExportProgressListener listener : listeners)
listener.operationInitializing();
}
protected void fireOperationGeneratingView() {
for (CSVExportProgressListener listener : listeners)
listener.operationGeneratingView();
}
protected void fireOperationUpdate(float elaborated) {
for (CSVExportProgressListener listener : listeners)