Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java @ 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 | 37438d7228b4 |
line wrap: on
line diff
--- 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("");