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
|
@ -133,10 +133,12 @@ public class SDMXOperationInProgressCard extends WizardCard implements
|
||||||
exportSDMX();
|
exportSDMX();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void operationInitializing() {
|
public void operationInitializing() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void operationUpdate(float elaborated) {
|
public void operationUpdate(float elaborated) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -198,4 +200,10 @@ public class SDMXOperationInProgressCard extends WizardCard implements
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void operationGeneratingView() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,4 +77,11 @@ public class SDMXExportProgressBarUpdater implements SDMXExportProgressListener
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void operationGeneratingView() {
|
||||||
|
Log.info("Generating View...");
|
||||||
|
progressBar.updateText("Generating View...");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,4 +50,10 @@ public interface SDMXExportProgressListener {
|
||||||
*/
|
*/
|
||||||
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,8 +59,13 @@ public class SDMXExportProgressUpdater extends Timer {
|
||||||
fireOperationUpdate(result.getProgress());
|
fireOperationUpdate(result.getProgress());
|
||||||
break;
|
break;
|
||||||
case VALIDATING_RULES:
|
case VALIDATING_RULES:
|
||||||
|
Log.info("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);
|
||||||
|
@ -131,6 +136,12 @@ public class SDMXExportProgressUpdater extends Timer {
|
||||||
listener.operationInitializing();
|
listener.operationInitializing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void fireOperationGeneratingView() {
|
||||||
|
for (SDMXExportProgressListener listener : listeners)
|
||||||
|
listener.operationGeneratingView();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void fireOperationUpdate(float elaborated) {
|
protected void fireOperationUpdate(float elaborated) {
|
||||||
for (SDMXExportProgressListener listener : listeners)
|
for (SDMXExportProgressListener listener : listeners)
|
||||||
listener.operationUpdate(elaborated);
|
listener.operationUpdate(elaborated);
|
||||||
|
|
Loading…
Reference in New Issue