Updated ProgressBar set Progress 0
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-csv-export-widget@98787 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
08465dbf5c
commit
22d2a7b3bf
|
@ -57,8 +57,7 @@ public class CSVExportProgressBarUpdater implements CSVExportProgressListener {
|
|||
@Override
|
||||
public void operationUpdate(float elaborated) {
|
||||
Log.info("Elaborated: "+elaborated);
|
||||
if (elaborated == 0) progressBar.updateProgress(0, "Initializing...");
|
||||
if (elaborated>0 && elaborated<1) {
|
||||
if (elaborated>=0 && elaborated<1) {
|
||||
Log.trace("progress "+elaborated);
|
||||
int elab=new Float(elaborated*100).intValue();
|
||||
progressBar.updateProgress(elaborated,elab+"% Exporting...");
|
||||
|
|
Loading…
Reference in New Issue