# HG changeset patch # User Ingo Weinzierl # Date 1317130028 0 # Node ID ea9a73782de4594cb035df40f97da0d987ed0c97 # Parent 45791d12a1f4a075786e266e9613e45e84e0653b Bugfix: #321 Refresh the parameter list after a calculation is finished. flys-client/trunk@2838 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 45791d12a1f4 -r ea9a73782de4 flys-client/ChangeLog --- 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 + + 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 flys/issue298 (Karte: Automatischer Zoom auf Berechnungsergebnisse) diff -r 45791d12a1f4 -r ea9a73782de4 flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java --- 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) { diff -r 45791d12a1f4 -r ea9a73782de4 flys-client/src/main/java/de/intevation/flys/client/client/ui/LoadingPanel.java --- 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 :