Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/StyleHelper.java @ 4665:f53e2e877aa4
Read and use the hidden hint correctly.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Wed, 12 Dec 2012 10:37:45 +0100 |
parents | a6b7f0585761 |
children |
comparison
equal
deleted
inserted
replaced
4664:c2b431e3e88a | 4665:f53e2e877aa4 |
---|---|
28 return null; | 28 return null; |
29 } | 29 } |
30 | 30 |
31 for(int i = 0; i < list.getLength(); i++) { | 31 for(int i = 0; i < list.getLength(); i++) { |
32 Element e = (Element) list.item(i); | 32 Element e = (Element) list.item(i); |
33 String hidden = e.getAttribute("hidden"); | 33 String hints = e.getAttribute("hints"); |
34 | 34 |
35 StyleSetting set = new StyleSetting ( | 35 StyleSetting set = new StyleSetting ( |
36 e.getAttribute("name"), | 36 e.getAttribute("name"), |
37 e.getAttribute("default"), | 37 e.getAttribute("default"), |
38 e.getAttribute("display"), | 38 e.getAttribute("display"), |
39 e.getAttribute("hints"), | 39 e.getAttribute("hints"), |
40 e.getAttribute("type"), | 40 e.getAttribute("type"), |
41 (hidden != null ? Boolean.valueOf(hidden) : false) | 41 (hints != null && hints.contains("hidden") ? true : false) |
42 ); | 42 ); |
43 style.appendStyleSetting(set); | 43 style.appendStyleSetting(set); |
44 } | 44 } |
45 return style; | 45 return style; |
46 } | 46 } |