Updated ProgressBar set Progress 0
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@98795 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
62754ee4c2
commit
4f288d6c8f
|
@ -58,8 +58,7 @@ public class ChangeTableTypeProgressBarUpdater implements ChangeTableTypeProgres
|
||||||
@Override
|
@Override
|
||||||
public void operationUpdate(float elaborated) {
|
public void operationUpdate(float elaborated) {
|
||||||
Log.info("Elaborated: "+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);
|
Log.trace("progress "+elaborated);
|
||||||
int elab=new Float(elaborated*100).intValue();
|
int elab=new Float(elaborated*100).intValue();
|
||||||
progressBar.updateProgress(elaborated,elab+"% Progress...");
|
progressBar.updateProgress(elaborated,elab+"% Progress...");
|
||||||
|
|
|
@ -58,8 +58,7 @@ public class DeleteRowsProgressBarUpdater implements DeleteRowsProgressListener
|
||||||
@Override
|
@Override
|
||||||
public void operationUpdate(float elaborated) {
|
public void operationUpdate(float elaborated) {
|
||||||
Log.info("Elaborated: "+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);
|
Log.trace("progress "+elaborated);
|
||||||
int elab=new Float(elaborated*100).intValue();
|
int elab=new Float(elaborated*100).intValue();
|
||||||
progressBar.updateProgress(elaborated,elab+"% Progress...");
|
progressBar.updateProgress(elaborated,elab+"% Progress...");
|
||||||
|
|
|
@ -58,9 +58,7 @@ public class DenormalizationProgressBarUpdater implements
|
||||||
@Override
|
@Override
|
||||||
public void operationUpdate(float elaborated) {
|
public void operationUpdate(float elaborated) {
|
||||||
Log.info("Elaborated: " + elaborated);
|
Log.info("Elaborated: " + elaborated);
|
||||||
if (elaborated == 0)
|
if (elaborated >= 0 && elaborated < 1) {
|
||||||
progressBar.updateProgress(0, "Initializing...");
|
|
||||||
if (elaborated > 0 && elaborated < 1) {
|
|
||||||
Log.trace("progress " + elaborated);
|
Log.trace("progress " + elaborated);
|
||||||
int elab = new Float(elaborated * 100).intValue();
|
int elab = new Float(elaborated * 100).intValue();
|
||||||
progressBar.updateProgress(elaborated, elab + "% Progress...");
|
progressBar.updateProgress(elaborated, elab + "% Progress...");
|
||||||
|
|
|
@ -58,8 +58,7 @@ public class DuplicatesRowsProgressBarUpdater implements DuplicatesRowsProgressL
|
||||||
@Override
|
@Override
|
||||||
public void operationUpdate(float elaborated) {
|
public void operationUpdate(float elaborated) {
|
||||||
Log.info("Elaborated: "+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);
|
Log.trace("progress "+elaborated);
|
||||||
int elab=new Float(elaborated*100).intValue();
|
int elab=new Float(elaborated*100).intValue();
|
||||||
progressBar.updateProgress(elaborated,elab+"% Progress...");
|
progressBar.updateProgress(elaborated,elab+"% Progress...");
|
||||||
|
|
|
@ -58,8 +58,7 @@ public class EditRowProgressBarUpdater implements EditRowProgressListener {
|
||||||
@Override
|
@Override
|
||||||
public void operationUpdate(float elaborated) {
|
public void operationUpdate(float elaborated) {
|
||||||
Log.info("Elaborated: "+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);
|
Log.trace("progress "+elaborated);
|
||||||
int elab=new Float(elaborated*100).intValue();
|
int elab=new Float(elaborated*100).intValue();
|
||||||
progressBar.updateProgress(elaborated,elab+"% Progress...");
|
progressBar.updateProgress(elaborated,elab+"% Progress...");
|
||||||
|
|
|
@ -58,9 +58,7 @@ public class NormalizationProgressBarUpdater implements
|
||||||
@Override
|
@Override
|
||||||
public void operationUpdate(float elaborated) {
|
public void operationUpdate(float elaborated) {
|
||||||
Log.info("Elaborated: " + elaborated);
|
Log.info("Elaborated: " + elaborated);
|
||||||
if (elaborated == 0)
|
if (elaborated >= 0 && elaborated < 1) {
|
||||||
progressBar.updateProgress(0, "Initializing...");
|
|
||||||
if (elaborated > 0 && elaborated < 1) {
|
|
||||||
Log.trace("progress " + elaborated);
|
Log.trace("progress " + elaborated);
|
||||||
int elab = new Float(elaborated * 100).intValue();
|
int elab = new Float(elaborated * 100).intValue();
|
||||||
progressBar.updateProgress(elaborated, elab + "% Progress...");
|
progressBar.updateProgress(elaborated, elab + "% Progress...");
|
||||||
|
|
|
@ -58,8 +58,7 @@ public class RollBackProgressBarUpdater implements RollBackProgressListener {
|
||||||
@Override
|
@Override
|
||||||
public void operationUpdate(float elaborated) {
|
public void operationUpdate(float elaborated) {
|
||||||
Log.info("Elaborated: "+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);
|
Log.trace("progress "+elaborated);
|
||||||
int elab=new Float(elaborated*100).intValue();
|
int elab=new Float(elaborated*100).intValue();
|
||||||
progressBar.updateProgress(elaborated,elab+"% Progress...");
|
progressBar.updateProgress(elaborated,elab+"% Progress...");
|
||||||
|
|
Loading…
Reference in New Issue