Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultArtifact.java @ 870:d5fb88ba99d2
Display status message and progress information in the WSPLGEN loading panel.
flys-client/trunk@2690 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 09 Sep 2011 15:08:15 +0000 |
parents | c9549074ecd1 |
children | e8a4d2fd25cc |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultArtifact.java Thu Sep 08 12:49:24 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultArtifact.java Fri Sep 09 15:08:15 2011 +0000 @@ -1,5 +1,7 @@ package de.intevation.flys.client.shared.model; +import java.util.List; + /** * The default implementation of an artifact that might be used in the client. @@ -17,6 +19,8 @@ /** Determines if the artifact is in background mode.*/ protected boolean inBackground; + protected List<CalculationMessage> messages; + /** The current artifact description. */ protected ArtifactDescription artifactDescription; @@ -30,7 +34,7 @@ public DefaultArtifact(String uuid, String hash) { - this(uuid, hash, false); + this(uuid, hash, false, null); } @@ -40,10 +44,16 @@ * @param uuid The artifact's uuid. * @param hash The artifact's hash. */ - public DefaultArtifact(String uuid, String hash, boolean inBackground) { + public DefaultArtifact( + String uuid, + String hash, + boolean inBackground, + List<CalculationMessage> messages + ) { this.uuid = uuid; this.hash = hash; this.inBackground = inBackground; + this.messages = messages; } @@ -67,6 +77,11 @@ } + public List<CalculationMessage> getBackgroundMessages() { + return messages; + } + + public ArtifactDescription getArtifactDescription() { return artifactDescription; }