changeset 2464:7568d97d74ce

Disable spinnerbox if theme is disabled. flys-client/trunk@4171 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 20 Mar 2012 12:15:41 +0000
parents 0eeceffd50e3
children ca40a5b1bb04
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java
diffstat 2 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Mar 20 11:59:37 2012 +0000
+++ b/flys-client/ChangeLog	Tue Mar 20 12:15:41 2012 +0000
@@ -1,3 +1,10 @@
+2012-03-20	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	Last step for fix flys/issue618.
+
+	* src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java:
+	  Do not enable spinner if theme is disabled.
+
 2012-03-20	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java	Tue Mar 20 11:59:37 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java	Tue Mar 20 12:15:41 2012 +0000
@@ -555,6 +555,19 @@
                             }
                         });
 
+                        if (facetRecord.getTheme().getActive() != 1) {
+                            spinnerItem.disable();
+                        }
+                        
+                        /*
+                        // To have visual representation of synchronous
+                        // navigation or not per theme, snip:
+                        if (synchronCrossSectionThemes.contains (themeHash
+                            (facetRecord.getTheme()))) {
+                            spinnerItem.setTextBoxStyle("bgBlueDark");
+                        }
+                        */
+
                         DynamicForm formWrap = new DynamicForm();
                         formWrap.setFields(spinnerItem);
                         formWrap.setTitlePrefix("");

http://dive4elements.wald.intevation.org