Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.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 | a95e82d6bcc1 |
children | 1627a28c4504 |
comparison
equal
deleted
inserted
replaced
1325:2f5fbfeda1d4 | 1326:974c6b3700de |
---|---|
24 import de.intevation.flys.client.shared.model.Collection; | 24 import de.intevation.flys.client.shared.model.Collection; |
25 import de.intevation.flys.client.shared.model.CollectionItemAttribute; | 25 import de.intevation.flys.client.shared.model.CollectionItemAttribute; |
26 import de.intevation.flys.client.shared.model.Style; | 26 import de.intevation.flys.client.shared.model.Style; |
27 import de.intevation.flys.client.shared.model.StyleSetting; | 27 import de.intevation.flys.client.shared.model.StyleSetting; |
28 import de.intevation.flys.client.shared.model.FacetRecord; | 28 import de.intevation.flys.client.shared.model.FacetRecord; |
29 import de.intevation.flys.client.shared.model.Theme; | |
29 | 30 |
30 import de.intevation.flys.client.client.services.CollectionItemAttributeServiceAsync; | 31 import de.intevation.flys.client.client.services.CollectionItemAttributeServiceAsync; |
31 import de.intevation.flys.client.client.services.CollectionItemAttributeService; | 32 import de.intevation.flys.client.client.services.CollectionItemAttributeService; |
32 import de.intevation.flys.client.client.ui.CollectionView; | 33 import de.intevation.flys.client.client.ui.CollectionView; |
33 | 34 |
125 | 126 |
126 | 127 |
127 protected VLayout createPropertyGrid() { | 128 protected VLayout createPropertyGrid() { |
128 VLayout properties = new VLayout(); | 129 VLayout properties = new VLayout(); |
129 | 130 |
130 Style s = attributes.getStyle(facet.getTheme().getFacet()); | 131 Theme t = facet.getTheme(); |
132 Style s = attributes.getStyle(t.getFacet(), t.getIndex()); | |
131 | 133 |
132 TextItem name = new TextItem("name", "Name"); | 134 TextItem name = new TextItem("name", "Name"); |
133 name.setValue(facet.getName()); | 135 name.setValue(facet.getName()); |
134 name.setTitleStyle("color:#000; width:120px"); | 136 name.setTitleStyle("color:#000; width:120px"); |
135 name.setTitleAlign(Alignment.LEFT); | 137 name.setTitleAlign(Alignment.LEFT); |
263 | 265 |
264 this.hide(); | 266 this.hide(); |
265 } | 267 } |
266 | 268 |
267 protected final void setNewValue(String name, String value) { | 269 protected final void setNewValue(String name, String value) { |
268 Style s = attributes.getStyle(facet.getTheme().getFacet()); | 270 Theme t = facet.getTheme(); |
271 Style s = attributes.getStyle(t.getFacet(), t.getIndex()); | |
269 StyleSetting set = s.getSetting(name); | 272 StyleSetting set = s.getSetting(name); |
270 if(name.equals("linecolor")) { | 273 if(name.equals("linecolor")) { |
271 value = htmlToRgb(value); | 274 value = htmlToRgb(value); |
272 } | 275 } |
273 set.setDefaultValue(value); | 276 set.setDefaultValue(value); |