comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/Style.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 f4deeafa60b3
children d9cb362b8b34
comparison
equal deleted inserted replaced
1291:1d04f35b2cc0 1292:bdc270ea6195
12 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> 12 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
13 */ 13 */
14 public class Style implements Serializable { 14 public class Style implements Serializable {
15 15
16 protected String name; 16 protected String name;
17
18 protected String facet;
19
17 protected List<StyleSetting> settings; 20 protected List<StyleSetting> settings;
18 21
19 public Style() { 22 public Style() {
20 settings = new ArrayList<StyleSetting>(); 23 settings = new ArrayList<StyleSetting>();
21 } 24 }
26 29
27 public void setName(String name) { 30 public void setName(String name) {
28 this.name = name; 31 this.name = name;
29 } 32 }
30 33
34 public void setFacet(String facet) {
35 this.facet = facet;
36 }
37
31 public String getName() { 38 public String getName() {
32 return this.name; 39 return this.name;
40 }
41
42 public String getFacet() {
43 return this.facet;
33 } 44 }
34 45
35 public StyleSetting getSetting(String name) { 46 public StyleSetting getSetting(String name) {
36 for (int i = 0; i < settings.size (); i++) { 47 for (int i = 0; i < settings.size (); i++) {
37 if (settings.get(i).getName().equals(name)) { 48 if (settings.get(i).getName().equals(name)) {

http://dive4elements.wald.intevation.org