Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/CollectionItemAttribute.java @ 1292:bdc270ea6195
Edited item attributes are saved and send to the server on accept.
flys-client/trunk@2898 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 05 Oct 2011 16:29:14 +0000 |
parents | 0f3b19df1880 |
children | 974c6b3700de |
comparison
equal
deleted
inserted
replaced
1291:1d04f35b2cc0 | 1292:bdc270ea6195 |
---|---|
10 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> | 10 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> |
11 */ | 11 */ |
12 public class CollectionItemAttribute implements Serializable { | 12 public class CollectionItemAttribute implements Serializable { |
13 | 13 |
14 protected List<Style> styles; | 14 protected List<Style> styles; |
15 | |
16 protected String artifact; | |
15 | 17 |
16 public CollectionItemAttribute() { | 18 public CollectionItemAttribute() { |
17 styles = new ArrayList<Style>(); | 19 styles = new ArrayList<Style>(); |
18 } | 20 } |
19 | 21 |
27 styles.remove(i); | 29 styles.remove(i); |
28 } | 30 } |
29 } | 31 } |
30 } | 32 } |
31 | 33 |
32 public Style getStyle(String name) { | 34 public Style getStyle(String facet) { |
33 for (int i = 0; i < styles.size(); i++) { | 35 for (int i = 0; i < styles.size(); i++) { |
34 if (styles.get(i).getName().equals(name)) { | 36 if (styles.get(i).getFacet().equals(facet)) { |
35 return styles.get(i); | 37 return styles.get(i); |
36 } | 38 } |
37 } | 39 } |
38 return null; | 40 return null; |
39 } | 41 } |
43 } | 45 } |
44 | 46 |
45 public int getNumStyles() { | 47 public int getNumStyles() { |
46 return styles.size(); | 48 return styles.size(); |
47 } | 49 } |
50 | |
51 public void setArtifact(String artifact) { | |
52 this.artifact = artifact; | |
53 } | |
54 | |
55 public String getArtifact () { | |
56 return this.artifact; | |
57 } | |
48 } | 58 } |