Minor Update

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-expression-widget@95255 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2014-04-30 09:43:22 +00:00
parent b490c1fea3
commit 04c57c53bc
5 changed files with 28 additions and 0 deletions

View File

@ -70,5 +70,12 @@ public class ColumnFilterProgressBarUpdater implements ColumnFilterProgressListe
progressBar.updateText("Validations failed");
}
@Override
public void operationGeneratingView() {
Log.info("Generating View...");
progressBar.updateText("Generating View...");
}
}

View File

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

View File

@ -49,5 +49,9 @@ public interface ColumnFilterProgressListener {
*/
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 ColumnFilterProgressUpdater 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 ColumnFilterProgressUpdater extends Timer {
for (ColumnFilterProgressListener listener : listeners)
listener.operationInitializing();
}
protected void fireOperationGeneratingView() {
for (ColumnFilterProgressListener listener : listeners)
listener.operationGeneratingView();
}
protected void fireOperationUpdate(float elaborated) {
for (ColumnFilterProgressListener listener : listeners)

View File

@ -175,6 +175,8 @@ public class ExpressionServiceImpl extends RemoteServiceServlet implements
case VALIDATING_RULES:
columnFilterMonitor.setProgress(task.getProgress());
break;
case GENERATING_VIEW:
break;
case ABORTED:
break;
case STOPPED: