[Dive4elements-commits] [PATCH 3 of 4] Reordered some attributes in editor ui and use the hidden attribute

Wald Commits scm-commit at wald.intevation.org
Wed Dec 12 10:43:17 CET 2012


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1355305130 -3600
# Node ID 28eb979ae31b0f1546c9df1b206513ec4eea3178
# Parent  f53e2e877aa48369bf65e373bc8029d02fb293be
Reordered some attributes in editor ui and use the hidden attribute.

diff -r f53e2e877aa4 -r 28eb979ae31b flys-client/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 Dec 12 10:37:45 2012 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java	Wed Dec 12 10:38:50 2012 +0100
@@ -294,6 +294,7 @@
                          "textsize",
                          "pointcolor",
                          "pointsize",
+                         "showpointlabel",
                          "textcolor",
                          "backgroundcolor",
                          "showbackground",
@@ -305,9 +306,11 @@
                          "textorientation",
                          "labelshowbg",
                          "labelbgcolor",
-                         "showpointlabel",
+                         "bandwidth",
                          "bandwidthcolor",
-                         "bandwidth"};
+                         "transparency",
+                         "showminimum",
+                         "showmaximum"};
 
         for (String settingName: sets) {
             StyleSetting set = style.getSetting(settingName);
@@ -327,7 +330,10 @@
         // Add settings not in whitelist above.
         for (StyleSetting set: style.getSettings()) {
 
-            if (Arrays.asList(sets).contains(set.getName()) || set == null) {
+            if (Arrays.asList(sets).contains(set.getName()) ||
+                set == null ||
+                set.isHidden()
+            ) {
                 continue;
             }
 


More information about the Dive4elements-commits mailing list