Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartPropertiesEditor.java @ 3513:c657c0bbcf8f
Updated to use split properties for logo placement.
flys-client/trunk@5287 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 29 Aug 2012 08:00:44 +0000 |
parents | b8a8ecdebc0d |
children | 0b576ca67cd5 |
comparison
equal
deleted
inserted
replaced
3512:b8a8ecdebc0d | 3513:c657c0bbcf8f |
---|---|
335 sp.setValue(val); | 335 sp.setValue(val); |
336 } | 336 } |
337 }); | 337 }); |
338 return logoChooser; | 338 return logoChooser; |
339 } | 339 } |
340 else if (choiceAttribute != null && choiceAttribute.equals("place")) { | 340 else if (choiceAttribute != null && choiceAttribute.equals("placeh")) { |
341 SelectItem placeChooser = new SelectItem(); | |
342 LinkedHashMap valueMap = new LinkedHashMap<String, String>(); | |
343 valueMap.put("right", "right"); | |
344 valueMap.put("left", "left"); | |
345 valueMap.put("center", "center"); | |
346 placeChooser.setValueMap(valueMap); | |
347 placeChooser.setTitleStyle("color:#000;"); | |
348 placeChooser.setTitleAlign(Alignment.LEFT); | |
349 placeChooser.setTitle(MSG.getString(name)); | |
350 placeChooser.setTitleAlign(Alignment.LEFT); | |
351 placeChooser.addBlurHandler(new BlurHandler() { | |
352 public void onBlur(BlurEvent e) { | |
353 String val; | |
354 if (e.getItem().getValue() == null) { | |
355 val = ""; | |
356 } | |
357 else { | |
358 val = e.getItem().getValue().toString(); | |
359 } | |
360 sp.setValue(val); | |
361 } | |
362 }); | |
363 return placeChooser; | |
364 } | |
365 else if (choiceAttribute != null && choiceAttribute.equals("placev")) { | |
341 SelectItem placeChooser = new SelectItem(); | 366 SelectItem placeChooser = new SelectItem(); |
342 LinkedHashMap valueMap = new LinkedHashMap<String, String>(); | 367 LinkedHashMap valueMap = new LinkedHashMap<String, String>(); |
343 valueMap.put("top", "top"); | 368 valueMap.put("top", "top"); |
344 valueMap.put("bottom", "bottom"); | 369 valueMap.put("bottom", "bottom"); |
345 valueMap.put("left", "left"); | 370 valueMap.put("center", "center"); |
346 valueMap.put("right", "right"); | |
347 placeChooser.setValueMap(valueMap); | 371 placeChooser.setValueMap(valueMap); |
348 placeChooser.setTitleStyle("color:#000;"); | 372 placeChooser.setTitleStyle("color:#000;"); |
349 placeChooser.setTitleAlign(Alignment.LEFT); | 373 placeChooser.setTitleAlign(Alignment.LEFT); |
350 placeChooser.setTitle(MSG.getString(name)); | 374 placeChooser.setTitle(MSG.getString(name)); |
351 placeChooser.setTitleAlign(Alignment.LEFT); | 375 placeChooser.setTitleAlign(Alignment.LEFT); |