changeset 1354:5327ca0f13d1

Group the theme attributes. flys-client/trunk@3032 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 19 Oct 2011 14:39:21 +0000
parents fd408dfbd3b8
children b9b4d27bcf63
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java
diffstat 2 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Wed Oct 19 11:44:41 2011 +0000
+++ b/flys-client/ChangeLog	Wed Oct 19 14:39:21 2011 +0000
@@ -1,3 +1,8 @@
+2011-10-19  Raimund Renkert <raimund.renkert@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java:
+	  Group the theme attributes.
+
 2011-10-19  Raimund Renkert <raimund.renkert@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Wed Oct 19 11:44:41 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Wed Oct 19 14:39:21 2011 +0000
@@ -167,8 +167,16 @@
         f.setFields(name);
         properties.addMember(f);
 
+        String[] sets = {"linetype",
+                         "linecolor",
+                         "linesize",
+                         "showlines",
+                         "font",
+                         "textcolor",
+                         "textsize"};
+
         for (int i = 0; i < s.getNumSettings(); i ++) {
-            final StyleSetting set = s.getSetting(i);
+            StyleSetting set = s.getSetting(sets[i]);
             DynamicForm property = createPropertyUI(
                 set.getDisplayName(),
                 set.getName(),

http://dive4elements.wald.intevation.org