Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/Style.java @ 1326:974c6b3700de
Use the theme index to identify the correct style.
flys-client/trunk@2968 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 14 Oct 2011 08:36:29 +0000 |
parents | d9cb362b8b34 |
children | 92074508a387 |
comparison
equal
deleted
inserted
replaced
1325:2f5fbfeda1d4 | 1326:974c6b3700de |
---|---|
11 public class Style implements Serializable { | 11 public class Style implements Serializable { |
12 | 12 |
13 protected String name; | 13 protected String name; |
14 | 14 |
15 protected String facet; | 15 protected String facet; |
16 | |
17 protected int index; | |
16 | 18 |
17 protected List<StyleSetting> settings; | 19 protected List<StyleSetting> settings; |
18 | 20 |
19 public Style() { | 21 public Style() { |
20 settings = new ArrayList<StyleSetting>(); | 22 settings = new ArrayList<StyleSetting>(); |
30 | 32 |
31 public void setFacet(String facet) { | 33 public void setFacet(String facet) { |
32 this.facet = facet; | 34 this.facet = facet; |
33 } | 35 } |
34 | 36 |
37 public void setIndex(int index) { | |
38 this.index = index; | |
39 } | |
40 | |
35 public String getName() { | 41 public String getName() { |
36 return this.name; | 42 return this.name; |
37 } | 43 } |
38 | 44 |
39 public String getFacet() { | 45 public String getFacet() { |
40 return this.facet; | 46 return this.facet; |
47 } | |
48 | |
49 public int getIndex() { | |
50 return this.index; | |
41 } | 51 } |
42 | 52 |
43 public StyleSetting getSetting(String name) { | 53 public StyleSetting getSetting(String name) { |
44 for (int i = 0; i < settings.size (); i++) { | 54 for (int i = 0; i < settings.size (); i++) { |
45 if (settings.get(i).getName().equals(name)) { | 55 if (settings.get(i).getName().equals(name)) { |