Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/CollectionItemAttribute.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 | bdc270ea6195 |
children | 92074508a387 |
comparison
equal
deleted
inserted
replaced
1325:2f5fbfeda1d4 | 1326:974c6b3700de |
---|---|
29 styles.remove(i); | 29 styles.remove(i); |
30 } | 30 } |
31 } | 31 } |
32 } | 32 } |
33 | 33 |
34 public Style getStyle(String facet) { | 34 public Style getStyle(String facet, int index) { |
35 for (int i = 0; i < styles.size(); i++) { | 35 for (int i = 0; i < styles.size(); i++) { |
36 if (styles.get(i).getFacet().equals(facet)) { | 36 Style tmp = styles.get(i); |
37 return styles.get(i); | 37 if (tmp.getFacet().equals(facet) && |
38 tmp.getIndex() == index) { | |
39 return tmp; | |
38 } | 40 } |
39 } | 41 } |
40 return null; | 42 return null; |
41 } | 43 } |
42 | 44 |