changeset 576:a0884f486711

Added 'index' and 'description' of a facet to the collection's attribute document. The ChartThemePanel is now working again. flys-client/trunk@2142 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 17 Jun 2011 10:16:45 +0000
parents 5277f46a63c2
children ded285064e43
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/server/CollectionHelper.java flys-client/src/main/java/de/intevation/flys/client/shared/model/Theme.java
diffstat 3 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Fri Jun 17 09:57:23 2011 +0000
+++ b/flys-client/ChangeLog	Fri Jun 17 10:16:45 2011 +0000
@@ -1,3 +1,12 @@
+2011-06-17  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/server/CollectionHelper.java:
+	  Write "index" and "description" into the attribute document. This is
+	  necessary for the ChartThemePanel.
+
+	* src/main/java/de/intevation/flys/client/shared/model/Theme.java: Added a
+	  getIndex() method.
+
 2011-06-17  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/server/DescribeCollectionServiceImpl.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/server/CollectionHelper.java	Fri Jun 17 09:57:23 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/CollectionHelper.java	Fri Jun 17 10:16:45 2011 +0000
@@ -149,6 +149,8 @@
         cr.addAttr(t, "artifact", theme.getArtifact(), true);
         cr.addAttr(t, "facet", theme.getFacet(), true);
         cr.addAttr(t, "pos", Integer.toString(theme.getPosition()), true);
+        cr.addAttr(t, "index", Integer.toString(theme.getIndex()), true);
+        cr.addAttr(t, "description", theme.getDescription(), true);
 
         return t;
     }
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/Theme.java	Fri Jun 17 09:57:23 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/Theme.java	Fri Jun 17 10:16:45 2011 +0000
@@ -12,6 +12,8 @@
 
     void setPosition(int pos);
 
+    int getIndex();
+
     boolean isActive();
 
     void setActive(boolean active);

http://dive4elements.wald.intevation.org