changeset 529:a1048d310829

Changes in the chart theme panel will now have an effect on the themes stored at the collection. flys-client/trunk@2017 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 27 May 2011 08:53:22 +0000
parents 39d9291513cc
children 26e38b79658d
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultTheme.java flys-client/src/main/java/de/intevation/flys/client/shared/model/Theme.java
diffstat 4 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Thu May 26 13:53:36 2011 +0000
+++ b/flys-client/ChangeLog	Fri May 27 08:53:22 2011 +0000
@@ -1,3 +1,13 @@
+2011-05-27  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/shared/model/Theme.java,
+	  src/main/java/de/intevation/flys/client/shared/model/DefaultTheme.java:
+	  Added a setter method to set the 'active' attribute if a theme.
+
+	* src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java:
+	  After editing themes in the theme control panel will now modify the
+	  themes stored at the collection as well.
+
 2011-05-26  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/shared/model/Theme.java,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java	Thu May 26 13:53:36 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartThemePanel.java	Fri May 27 08:53:22 2011 +0000
@@ -195,6 +195,9 @@
         int         row = event.getRowNum();
         FacetRecord rec = (FacetRecord) list.getRecord(row);
 
+        Theme theme = rec.getTheme();
+        theme.setActive(rec.getActive());
+
         updateThemeList(rec.getTheme());
     }
 
@@ -282,6 +285,8 @@
             case 2: moveRecordsDown(records); break;
             case 3: moveRecordsBottom(records); break;
         }
+
+        updateCollection();
     }
 
 
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultTheme.java	Thu May 26 13:53:36 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultTheme.java	Fri May 27 08:53:22 2011 +0000
@@ -42,6 +42,11 @@
     }
 
 
+    public void setActive(boolean active) {
+        this.active = active;
+    }
+
+
     public String getArtifact() {
         return artifact;
     }
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/Theme.java	Thu May 26 13:53:36 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/Theme.java	Fri May 27 08:53:22 2011 +0000
@@ -14,6 +14,8 @@
 
     boolean isActive();
 
+    void setActive(boolean active);
+
     String getArtifact();
 
     String getFacet();

http://dive4elements.wald.intevation.org