comparison 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
comparison
equal deleted inserted replaced
1303:84c50f1d939b 1304:18b0414bde44
26 String firstName; 26 String firstName;
27 27
28 /** Human-readable short information about the "second" recommendation. */ 28 /** Human-readable short information about the "second" recommendation. */
29 String secondName; 29 String secondName;
30 30
31 /**
32 * Whether the RecommendationPairRecord was restored from data and thus
33 * already loaded (usually cloned) in an ArtifactCollection or not.
34 */
35 boolean alreadyLoaded;
36
31 37
32 public RecommendationPairRecord() { 38 public RecommendationPairRecord() {
33 } 39 }
34 40
35 41
47 String secondName, 53 String secondName,
48 Recommendation second) 54 Recommendation second)
49 { 55 {
50 setFirst(first, firstName); 56 setFirst(first, firstName);
51 setSecond(second, secondName); 57 setSecond(second, secondName);
58 alreadyLoaded = false;
52 } 59 }
53 60
54 61
55 /** 62 /**
56 * Sets the first recommendation with info (minuend). 63 * Sets the first recommendation with info (minuend).
104 * @return name of second recommendation (typically the subtrahend). 111 * @return name of second recommendation (typically the subtrahend).
105 */ 112 */
106 public String getSecondName() { 113 public String getSecondName() {
107 return secondName; 114 return secondName;
108 } 115 }
116
117
118 /**
119 * Sets whether or not the Recommendation is already loaded (in contrast
120 * to not yet loaded).
121 * @param isAlreadyLoaded new value.
122 */
123 public void setIsAlreadyLoaded(boolean isAlreadyLoaded) {
124 this.alreadyLoaded = isAlreadyLoaded;
125 }
126
127
128 /**
129 * Whether or not this pair of recommendations is already laoded (usually
130 * cloned) in an ArtifactCollection.
131 * @return whether pair of recommendations is already loaded.
132 */
133 public boolean isAlreadyLoaded() {
134 return this.alreadyLoaded;
135 }
109 } 136 }

http://dive4elements.wald.intevation.org