Updated progress bar

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-table-widget@95259 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-04-30 09:59:44 +00:00 committed by Giancarlo Panichi
parent 132dbae8df
commit 950bc37cef
16 changed files with 113 additions and 2 deletions

View File

@ -72,4 +72,12 @@ public class ChangeTableTypeProgressBarUpdater implements ChangeTableTypeProgres
}
@Override
public void operationGeneratingView() {
Log.info("Generating View...");
progressBar.updateText("Generating View...");
}
}

View File

@ -128,4 +128,10 @@ public class ChangeTableTypeProgressDialog extends Window implements ChangeTable
this.trId=trId;
why=ChangeTableWhy.TABLECURATION;
}
@Override
public void operationGeneratingView() {
// TODO Auto-generated method stub
}
}

View File

@ -49,4 +49,10 @@ public interface ChangeTableTypeProgressListener {
*/
public void operationStopped(TRId trId, String reason, String details);
/**
* Called when the operation is generating the view
*/
public void operationGeneratingView();
}

View File

@ -61,6 +61,10 @@ public class ChangeTableTypeProgressUpdater extends Timer {
case VALIDATING_RULES:
fireOperationUpdate(result.getProgress());
break;
case GENERATING_VIEW:
Log.info("Generating View...");
fireOperationGeneratingView();
break;
case STOPPED:
cancel();
stopMessage(result);
@ -135,6 +139,11 @@ public class ChangeTableTypeProgressUpdater extends Timer {
listener.operationInitializing();
}
protected void fireOperationGeneratingView() {
for (ChangeTableTypeProgressListener listener : listeners)
listener.operationGeneratingView();
}
protected void fireOperationUpdate(float elaborated) {
for (ChangeTableTypeProgressListener listener : listeners)
listener.operationUpdate(elaborated);

View File

@ -72,4 +72,11 @@ public class DeleteRowsProgressBarUpdater implements DeleteRowsProgressListener
}
@Override
public void operationGeneratingView() {
Log.info("Generating View...");
progressBar.updateText("Generating View...");
}
}

View File

@ -129,4 +129,10 @@ public class DeleteRowsProgressDialog extends Window implements DeleteRowsProgre
this.trId=trId;
why=ChangeTableWhy.TABLECURATION;
}
@Override
public void operationGeneratingView() {
// TODO Auto-generated method stub
}
}

View File

@ -49,4 +49,9 @@ public interface DeleteRowsProgressListener {
*/
public void operationStopped(TRId trId, String reason, String details);
/**
* Called when the operation is generating the view
*/
public void operationGeneratingView();
}

View File

@ -61,6 +61,10 @@ public class DeleteRowsProgressUpdater extends Timer {
case VALIDATING_RULES:
fireOperationUpdate(result.getProgress());
break;
case GENERATING_VIEW:
Log.info("Generating View...");
fireOperationGeneratingView();
break;
case STOPPED:
cancel();
stopMessage(result);
@ -135,6 +139,11 @@ public class DeleteRowsProgressUpdater extends Timer {
listener.operationInitializing();
}
protected void fireOperationGeneratingView() {
for (DeleteRowsProgressListener listener : listeners)
listener.operationGeneratingView();
}
protected void fireOperationUpdate(float elaborated) {
for (DeleteRowsProgressListener listener : listeners)
listener.operationUpdate(elaborated);

View File

@ -72,4 +72,11 @@ public class DuplicatesRowsProgressBarUpdater implements DuplicatesRowsProgressL
}
@Override
public void operationGeneratingView() {
Log.info("Generating View...");
progressBar.updateText("Generating View...");
}
}

View File

@ -127,4 +127,10 @@ public class DuplicatesRowsProgressDialog extends Window implements DuplicatesRo
this.trId=trId;
why=ChangeTableWhy.TABLECURATION;
}
@Override
public void operationGeneratingView() {
// TODO Auto-generated method stub
}
}

View File

@ -49,4 +49,9 @@ public interface DuplicatesRowsProgressListener {
*/
public void operationStopped(TRId trId, String reason, String details);
/**
* Called when the operation is generating the view
*/
public void operationGeneratingView();
}

View File

@ -61,6 +61,10 @@ public class DuplicatesRowsProgressUpdater extends Timer {
case VALIDATING_RULES:
fireOperationUpdate(result.getProgress());
break;
case GENERATING_VIEW:
Log.info("Generating View...");
fireOperationGeneratingView();
break;
case STOPPED:
cancel();
stopMessage(result);
@ -135,6 +139,11 @@ public class DuplicatesRowsProgressUpdater extends Timer {
listener.operationInitializing();
}
protected void fireOperationGeneratingView() {
for (DuplicatesRowsProgressListener listener : listeners)
listener.operationGeneratingView();
}
protected void fireOperationUpdate(float elaborated) {
for (DuplicatesRowsProgressListener listener : listeners)
listener.operationUpdate(elaborated);

View File

@ -72,4 +72,11 @@ public class RollBackProgressBarUpdater implements RollBackProgressListener {
}
@Override
public void operationGeneratingView() {
Log.info("Generating View...");
progressBar.updateText("Generating View...");
}
}

View File

@ -126,4 +126,10 @@ public class RollBackProgressDialog extends Window implements RollBackProgressLi
this.trId=trId;
why=ChangeTableWhy.TABLECURATION;
}
@Override
public void operationGeneratingView() {
// TODO Auto-generated method stub
}
}

View File

@ -49,4 +49,10 @@ public interface RollBackProgressListener {
*/
public void operationStopped(TRId trId, String reason, String details);
/**
* Called when the operation is generating the view
*/
public void operationGeneratingView();
}

View File

@ -61,6 +61,10 @@ public class RollBackProgressUpdater extends Timer {
case VALIDATING_RULES:
fireOperationUpdate(result.getProgress());
break;
case GENERATING_VIEW:
Log.info("Generating View...");
fireOperationGeneratingView();
break;
case STOPPED:
cancel();
stopMessage(result);
@ -135,6 +139,11 @@ public class RollBackProgressUpdater extends Timer {
listener.operationInitializing();
}
protected void fireOperationGeneratingView() {
for (RollBackProgressListener listener : listeners)
listener.operationGeneratingView();
}
protected void fireOperationUpdate(float elaborated) {
for (RollBackProgressListener listener : listeners)
listener.operationUpdate(elaborated);