comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java @ 2499:8f36d4b5890c

Define order for linelabel theme properties. flys-client/trunk@4332 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 02 May 2012 19:07:23 +0000
parents 75d19d46c3cd
children e75b15818435
comparison
equal deleted inserted replaced
2498:499d2692305d 2499:8f36d4b5890c
189 "textsize", 189 "textsize",
190 "pointsize", 190 "pointsize",
191 "textcolor", 191 "textcolor",
192 "textorientation", 192 "textorientation",
193 "backgroundcolor", 193 "backgroundcolor",
194 "showbackground"}; 194 "showbackground",
195 "showlinelabel",
196 "linelabelfont",
197 "linelabelcolor",
198 "linelabelsize",
199 "linelabelstyle",
200 "linelabelshowbg",
201 "linelabelbgcolor"};
195 202
196 for (String settingName: sets) { 203 for (String settingName: sets) {
197 StyleSetting set = style.getSetting(settingName); 204 StyleSetting set = style.getSetting(settingName);
198 205
199 if (set == null) { 206 if (set == null) {
249 if(type.equals("int")) { 256 if(type.equals("int")) {
250 f = new SelectItem(name, MSG.getString(name)); 257 f = new SelectItem(name, MSG.getString(name));
251 if (name.equals("linesize")) { 258 if (name.equals("linesize")) {
252 f = createLineSizeUI(f); 259 f = createLineSizeUI(f);
253 } 260 }
254 else if (name.equals("textsize")) { 261 else if (name.equals("textsize") || name.equals("linelabelsize")) {
255 LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>(); 262 LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>();
256 valueMap.put("3", "3"); 263 valueMap.put("3", "3");
257 valueMap.put("5", "5"); 264 valueMap.put("5", "5");
258 valueMap.put("8", "8"); 265 valueMap.put("8", "8");
259 valueMap.put("10", "10"); 266 valueMap.put("10", "10");

http://dive4elements.wald.intevation.org