Updated progress bar
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-sdmx-export-widget@95257 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
96c905ce9c
commit
8809fcc18a
|
@ -132,11 +132,13 @@ public class SDMXOperationInProgressCard extends WizardCard implements
|
|||
getWizardWindow().setNextButtonToFinish();
|
||||
exportSDMX();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void operationInitializing() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void operationUpdate(float elaborated) {
|
||||
|
||||
}
|
||||
|
@ -198,4 +200,10 @@ public class SDMXOperationInProgressCard extends WizardCard implements
|
|||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void operationGeneratingView() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -76,5 +76,12 @@ public class SDMXExportProgressBarUpdater implements SDMXExportProgressListener
|
|||
progressBar.updateText("Validations failed");
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void operationGeneratingView() {
|
||||
Log.info("Generating View...");
|
||||
progressBar.updateText("Generating View...");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -49,5 +49,11 @@ public interface SDMXExportProgressListener {
|
|||
* @param details
|
||||
*/
|
||||
public void operationStopped(TRId trId, String reason, String details);
|
||||
|
||||
|
||||
/**
|
||||
* Called when the operation is generating the view
|
||||
*/
|
||||
public void operationGeneratingView();
|
||||
|
||||
}
|
||||
|
|
|
@ -59,8 +59,13 @@ public class SDMXExportProgressUpdater extends Timer {
|
|||
fireOperationUpdate(result.getProgress());
|
||||
break;
|
||||
case VALIDATING_RULES:
|
||||
Log.info("Validating Rules...");
|
||||
fireOperationUpdate(result.getProgress());
|
||||
break;
|
||||
case GENERATING_VIEW:
|
||||
Log.info("Generating View...");
|
||||
fireOperationGeneratingView();
|
||||
break;
|
||||
case FAILED:
|
||||
cancel();
|
||||
errorMessage(result);
|
||||
|
@ -130,7 +135,13 @@ public class SDMXExportProgressUpdater extends Timer {
|
|||
for (SDMXExportProgressListener listener : listeners)
|
||||
listener.operationInitializing();
|
||||
}
|
||||
|
||||
protected void fireOperationGeneratingView() {
|
||||
for (SDMXExportProgressListener listener : listeners)
|
||||
listener.operationGeneratingView();
|
||||
}
|
||||
|
||||
|
||||
protected void fireOperationUpdate(float elaborated) {
|
||||
for (SDMXExportProgressListener listener : listeners)
|
||||
listener.operationUpdate(elaborated);
|
||||
|
|
Loading…
Reference in New Issue