comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/DatacageTwinPanel.java @ 6623:3999162f474f

DatacageTwinPanel: Show busy-wheel when loading and adding artifacts to collection.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Mon, 22 Jul 2013 11:11:05 +0200
parents 67b4728723df
children 04cc2dee911e
comparison
equal deleted inserted replaced
6622:718b0822374d 6623:3999162f474f
391 } 391 }
392 }); 392 });
393 } 393 }
394 394
395 // Clone new ones (and spawn statics), go forward. 395 // Clone new ones (and spawn statics), go forward.
396 parameterList.lockUI();
396 loadArtifactService.loadMany( 397 loadArtifactService.loadMany(
397 this.collection, 398 this.collection,
398 toClone, 399 toClone,
399 //"staticwkms" and "waterlevel" 400 //"staticwkms" and "waterlevel"
400 null, 401 null,
401 locale, 402 locale,
402 new AsyncCallback<Artifact[]>() { 403 new AsyncCallback<Artifact[]>() {
403 @Override 404 @Override
404 public void onFailure(Throwable caught) { 405 public void onFailure(Throwable caught) {
405 GWT.log("Failure of cloning with factories!"); 406 GWT.log("Failure of cloning with factories!");
407 parameterList.unlockUI();
406 } 408 }
407 @Override 409 @Override
408 public void onSuccess(Artifact[] artifacts) { 410 public void onSuccess(Artifact[] artifacts) {
409 GWT.log("Successfully cloned " + toClone.length + 411 GWT.log("Successfully cloned " + toClone.length +
410 " with factories."); 412 " with factories.");
411 413
412 fireStepForwardEvent(new StepForwardEvent( 414 fireStepForwardEvent(new StepForwardEvent(
413 getData(toClone, artifacts, toUse))); 415 getData(toClone, artifacts, toUse)));
416 parameterList.unlockUI();
414 } 417 }
415 }); 418 });
416 } 419 }
417 420
418 421

http://dive4elements.wald.intevation.org