changeset 1531:8b4688a2e25d

Set the empty facet to invisible. flys-client/trunk@3739 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 20 Jan 2012 09:52:48 +0000
parents f1f0e9c75026
children 916c94b32be2
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Fri Jan 20 09:25:00 2012 +0000
+++ b/flys-client/ChangeLog	Fri Jan 20 09:52:48 2012 +0000
@@ -1,3 +1,10 @@
+2012-01-20  Raimund Renkert <raimund.renkert@intevation.de>
+
+	Set the empty facet to invisible.
+
+	* src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java:
+	  Hide empty facets in theme list.
+
 2012-01-20  Raimund Renkert <raimund.renkert@intevation.de>
 
 	Added new artifact to be able to open existing 'new chart' projects.
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java	Fri Jan 20 09:25:00 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ThemePanel.java	Fri Jan 20 09:52:48 2012 +0000
@@ -230,6 +230,10 @@
         for (int i = 1; i <= count; i++) {
             Theme theme = themeList.getThemeAt(i);
 
+            if(theme.getFacet().equals("empty.facet")) {
+                theme.setVisible(0);
+            }
+
             if (theme == null || theme.getVisible() == 0) {
                 continue;
             }

http://dive4elements.wald.intevation.org