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:
parent
6c8dfb000f
commit
e1bff4ae2a
|
@ -183,4 +183,10 @@ public class CSVOperationInProgressCard extends WizardCard implements
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void operationGeneratingView() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,5 +73,12 @@ public class CSVExportProgressBarUpdater implements CSVExportProgressListener {
|
||||||
progressBar.updateText("Validations failed");
|
progressBar.updateText("Validations failed");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void operationGeneratingView() {
|
||||||
|
Log.info("Generating View...");
|
||||||
|
progressBar.updateText("Generating View...");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,6 +49,10 @@ public interface CSVExportProgressListener {
|
||||||
* @param details
|
* @param details
|
||||||
*/
|
*/
|
||||||
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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,6 +61,10 @@ public class CSVExportProgressUpdater 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 CSVExportProgressUpdater extends Timer {
|
||||||
for (CSVExportProgressListener listener : listeners)
|
for (CSVExportProgressListener listener : listeners)
|
||||||
listener.operationInitializing();
|
listener.operationInitializing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void fireOperationGeneratingView() {
|
||||||
|
for (CSVExportProgressListener listener : listeners)
|
||||||
|
listener.operationGeneratingView();
|
||||||
|
}
|
||||||
|
|
||||||
protected void fireOperationUpdate(float elaborated) {
|
protected void fireOperationUpdate(float elaborated) {
|
||||||
for (CSVExportProgressListener listener : listeners)
|
for (CSVExportProgressListener listener : listeners)
|
||||||
|
|
Loading…
Reference in New Issue