Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/RecommendationPairRecord.java @ 1304:18b0414bde44
Allow reparameterization of W-Diffs.
flys-client/trunk@2938 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 11 Oct 2011 11:59:57 +0000 |
parents | f4f30d758550 |
children | 1627a28c4504 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/RecommendationPairRecord.java Tue Oct 11 11:50:58 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/RecommendationPairRecord.java Tue Oct 11 11:59:57 2011 +0000 @@ -28,6 +28,12 @@ /** Human-readable short information about the "second" recommendation. */ String secondName; + /** + * Whether the RecommendationPairRecord was restored from data and thus + * already loaded (usually cloned) in an ArtifactCollection or not. + */ + boolean alreadyLoaded; + public RecommendationPairRecord() { } @@ -49,6 +55,7 @@ { setFirst(first, firstName); setSecond(second, secondName); + alreadyLoaded = false; } @@ -106,4 +113,24 @@ public String getSecondName() { return secondName; } + + + /** + * Sets whether or not the Recommendation is already loaded (in contrast + * to not yet loaded). + * @param isAlreadyLoaded new value. + */ + public void setIsAlreadyLoaded(boolean isAlreadyLoaded) { + this.alreadyLoaded = isAlreadyLoaded; + } + + + /** + * Whether or not this pair of recommendations is already laoded (usually + * cloned) in an ArtifactCollection. + * @return whether pair of recommendations is already loaded. + */ + public boolean isAlreadyLoaded() { + return this.alreadyLoaded; + } }