comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/CollectionView.java @ 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 87b6a93db523
children 94d4f040da3a
comparison
equal deleted inserted replaced
1269:45791d12a1f4 1270:ea9a73782de4
322 onArtifactChanged(artifact); 322 onArtifactChanged(artifact);
323 } 323 }
324 324
325 325
326 public void onArtifactChanged(Artifact artifact) { 326 public void onArtifactChanged(Artifact artifact) {
327 artifactChanged();
328
327 if (artifact.isInBackground()) { 329 if (artifact.isInBackground()) {
328 new LoadingPanel(this, artifact); 330 new LoadingPanel(this, artifact);
329 } 331 }
330 } 332 }
331 333
336 * 338 *
337 * @param event The ParameterChangeEvent. 339 * @param event The ParameterChangeEvent.
338 */ 340 */
339 public void onParameterChange(ParameterChangeEvent event) { 341 public void onParameterChange(ParameterChangeEvent event) {
340 GWT.log("CollectionView.onParameterChange"); 342 GWT.log("CollectionView.onParameterChange");
341 343 setArtifact(event.getNewValue());
342 Artifact art = event.getNewValue(); 344 }
343 ArtifactDescription desc = art.getArtifactDescription(); 345
346
347 protected void artifactChanged() {
348 ArtifactDescription desc = getArtifact().getArtifactDescription();
344 OutputMode[] outs = desc.getOutputModes(); 349 OutputMode[] outs = desc.getOutputModes();
345 Recommendation[] recom = desc.getRecommendations(); 350 Recommendation[] recom = desc.getRecommendations();
346
347 setArtifact(art);
348 351
349 Collection c = getCollection(); 352 Collection c = getCollection();
350 353
351 if (recom != null && collection != null) { 354 if (recom != null && collection != null) {
352 loadRecommendedArtifacts(recom); 355 loadRecommendedArtifacts(recom);

http://dive4elements.wald.intevation.org