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:
parent
77631091f9
commit
92bfc6e8c7
|
@ -231,4 +231,10 @@ public class SDMXOperationInProgressCard extends WizardCard implements
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void operationGeneratingView() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,5 +78,12 @@ public class ImportProgressBarUpdater implements OperationProgressListener {
|
||||||
progressBar.updateText("Validations failed");
|
progressBar.updateText("Validations failed");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void operationGeneratingView() {
|
||||||
|
Log.info("Generating View...");
|
||||||
|
progressBar.updateText("Generating View...");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,4 +52,10 @@ public interface OperationProgressListener {
|
||||||
*/
|
*/
|
||||||
public void operationStopped(TRId trId, String reason, String details);
|
public void operationStopped(TRId trId, String reason, String details);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Called when the operation is generating the view
|
||||||
|
*/
|
||||||
|
public void operationGeneratingView();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,6 +59,10 @@ public class OperationProgressUpdater extends Timer {
|
||||||
case VALIDATING_RULES:
|
case VALIDATING_RULES:
|
||||||
fireOperationUpdate(result.getProgress());
|
fireOperationUpdate(result.getProgress());
|
||||||
break;
|
break;
|
||||||
|
case GENERATING_VIEW:
|
||||||
|
Log.info("Generating View...");
|
||||||
|
fireOperationGeneratingView();
|
||||||
|
break;
|
||||||
case FAILED:
|
case FAILED:
|
||||||
cancel();
|
cancel();
|
||||||
errorMessage(result);
|
errorMessage(result);
|
||||||
|
@ -132,6 +136,11 @@ public class OperationProgressUpdater extends Timer {
|
||||||
for (OperationProgressListener listener : listeners)
|
for (OperationProgressListener listener : listeners)
|
||||||
listener.operationInitializing();
|
listener.operationInitializing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void fireOperationGeneratingView() {
|
||||||
|
for (OperationProgressListener listener : listeners)
|
||||||
|
listener.operationGeneratingView();
|
||||||
|
}
|
||||||
|
|
||||||
protected void fireOperationUpdate(float elaborated) {
|
protected void fireOperationUpdate(float elaborated) {
|
||||||
for (OperationProgressListener listener : listeners)
|
for (OperationProgressListener listener : listeners)
|
||||||
|
|
Loading…
Reference in New Issue