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

@ -71,5 +71,13 @@ public class ChangeTableTypeProgressBarUpdater implements ChangeTableTypeProgres
progressBar.updateText("Validations failed");
}
@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

@ -48,5 +48,11 @@ public interface ChangeTableTypeProgressListener {
* @param details
*/
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);
@ -134,6 +138,11 @@ public class ChangeTableTypeProgressUpdater extends Timer {
for (ChangeTableTypeProgressListener listener : listeners)
listener.operationInitializing();
}
protected void fireOperationGeneratingView() {
for (ChangeTableTypeProgressListener listener : listeners)
listener.operationGeneratingView();
}
protected void fireOperationUpdate(float elaborated) {
for (ChangeTableTypeProgressListener listener : listeners)

View File

@ -71,5 +71,12 @@ public class DeleteRowsProgressBarUpdater implements DeleteRowsProgressListener
progressBar.updateText("Validations failed");
}
@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

@ -48,5 +48,10 @@ public interface DeleteRowsProgressListener {
* @param details
*/
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);
@ -134,6 +138,11 @@ public class DeleteRowsProgressUpdater extends Timer {
for (DeleteRowsProgressListener listener : listeners)
listener.operationInitializing();
}
protected void fireOperationGeneratingView() {
for (DeleteRowsProgressListener listener : listeners)
listener.operationGeneratingView();
}
protected void fireOperationUpdate(float elaborated) {
for (DeleteRowsProgressListener listener : listeners)

View File

@ -71,5 +71,12 @@ public class DuplicatesRowsProgressBarUpdater implements DuplicatesRowsProgressL
progressBar.updateText("Validations failed");
}
@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

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

View File

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

View File

@ -71,5 +71,12 @@ public class RollBackProgressBarUpdater implements RollBackProgressListener {
progressBar.updateText("Validations failed");
}
@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

@ -48,5 +48,11 @@ public interface RollBackProgressListener {
* @param details
*/
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);
@ -134,6 +138,11 @@ public class RollBackProgressUpdater extends Timer {
for (RollBackProgressListener listener : listeners)
listener.operationInitializing();
}
protected void fireOperationGeneratingView() {
for (RollBackProgressListener listener : listeners)
listener.operationGeneratingView();
}
protected void fireOperationUpdate(float elaborated) {
for (RollBackProgressListener listener : listeners)