Mercurial > dive4elements > river
changeset 1270:ea9a73782de4
Bugfix: #321 Refresh the parameter list after a calculation is finished.
flys-client/trunk@2838 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 27 Sep 2011 13:27:08 +0000 |
parents | 45791d12a1f4 |
children | 3e7717b6e2bc |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java flys-client/src/main/java/de/intevation/flys/client/client/ui/LoadingPanel.java |
diffstat | 3 files changed, 19 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Mon Sep 26 15:38:27 2011 +0000 +++ b/flys-client/ChangeLog Tue Sep 27 13:27:08 2011 +0000 @@ -1,3 +1,14 @@ +2011-09-27 Ingo Weinzierl <ingo@intevation.de> + + flys/issue321 (ÜSK: Aktualisieren der Parameterliste nach Beendigung der Berechnung) + + * src/main/java/de/intevation/flys/client/client/ui/LoadingPanel.java: Put + the updated Artifact into the CollectionView when the calculation is + finished. + + * src/main/java/de/intevation/flys/client/client/ui/CollectionView.java: + Update the UI after the Artifact of this CollectionView is updated. + 2011-09-26 Ingo Weinzierl <ingo@intevation.de> flys/issue298 (Karte: Automatischer Zoom auf Berechnungsergebnisse)
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Mon Sep 26 15:38:27 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java Tue Sep 27 13:27:08 2011 +0000 @@ -324,6 +324,8 @@ public void onArtifactChanged(Artifact artifact) { + artifactChanged(); + if (artifact.isInBackground()) { new LoadingPanel(this, artifact); } @@ -338,14 +340,15 @@ */ public void onParameterChange(ParameterChangeEvent event) { GWT.log("CollectionView.onParameterChange"); + setArtifact(event.getNewValue()); + } - Artifact art = event.getNewValue(); - ArtifactDescription desc = art.getArtifactDescription(); + + protected void artifactChanged() { + ArtifactDescription desc = getArtifact().getArtifactDescription(); OutputMode[] outs = desc.getOutputModes(); Recommendation[] recom = desc.getRecommendations(); - setArtifact(art); - Collection c = getCollection(); if (recom != null && collection != null) {
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/LoadingPanel.java Mon Sep 26 15:38:27 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/LoadingPanel.java Tue Sep 27 13:27:08 2011 +0000 @@ -179,6 +179,7 @@ private void finish() { parent.removeChild(this); parent.removeChild(dialog); + parent.setArtifact(artifact); } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :