diff flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultTheme.java @ 528:39d9291513cc

Connected the actions in the navigation panel with the theme list in the ChartThemePanel - themes can be moved now. flys-client/trunk@2009 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 26 May 2011 13:53:36 +0000
parents fc994da131f9
children a1048d310829
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultTheme.java	Wed May 25 16:23:16 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultTheme.java	Thu May 26 13:53:36 2011 +0000
@@ -32,6 +32,11 @@
     }
 
 
+    public void setPosition(int pos) {
+        this.position = pos;
+    }
+
+
     public boolean isActive() {
         return active;
     }
@@ -45,5 +50,32 @@
     public String getFacet() {
         return facet;
     }
+
+
+    public boolean equals(Object o) {
+        if (!(o instanceof DefaultTheme)) {
+            return false;
+        }
+
+        DefaultTheme other = (DefaultTheme) o;
+
+        if (other.position != position) {
+            return false;
+        }
+
+        if (!other.artifact.equals(artifact)) {
+            return false;
+        }
+
+        if (other.active != active) {
+            return false;
+        }
+
+        if (!other.facet.equals(facet)) {
+            return false;
+        }
+
+        return true;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org