Updated progress bar

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-sdmx-import-widget@95258 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-04-30 09:51:39 +00:00 committed by Giancarlo Panichi
parent 77631091f9
commit 92bfc6e8c7
4 changed files with 28 additions and 0 deletions

View File

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

View File

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

View File

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

View File

@ -59,6 +59,10 @@ public class OperationProgressUpdater 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 OperationProgressUpdater extends Timer {
for (OperationProgressListener listener : listeners)
listener.operationInitializing();
}
protected void fireOperationGeneratingView() {
for (OperationProgressListener listener : listeners)
listener.operationGeneratingView();
}
protected void fireOperationUpdate(float elaborated) {
for (OperationProgressListener listener : listeners)