changeset 3528:b5825159250e

Add isSelected method to Module classes flys-client/trunk@5331 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Fri, 31 Aug 2012 13:21:26 +0000
parents 6ededa5aa803
children 72d2ec6a471e
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultModule.java flys-client/src/main/java/de/intevation/flys/client/shared/model/Module.java
diffstat 3 files changed, 18 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Fri Aug 31 11:29:44 2012 +0000
+++ b/flys-client/ChangeLog	Fri Aug 31 13:21:26 2012 +0000
@@ -1,3 +1,9 @@
+2012-08-31	Björn Ricks	<bjoern.ricks@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/shared/model/DefaultModule.java,
+	  src/main/java/de/intevation/flys/client/client/services/ModuleService.java:
+	  Add isSelected method to Module classes.
+
 2012-08-31  Raimund Renkert <raimund.renkert@intevation.de>
 
 	MINFO: Added new UI provider for bed quality calculation.
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultModule.java	Fri Aug 31 11:29:44 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultModule.java	Fri Aug 31 13:21:26 2012 +0000
@@ -4,13 +4,15 @@
 
     private String name;
     private String localname;
+    private boolean selected = false;
 
     public DefaultModule() {
     }
 
-    public DefaultModule(String name, String localname) {
+    public DefaultModule(String name, String localname, boolean selected) {
         this.name = name;
         this.localname = localname;
+        this.selected = selected;
     }
 
     /**
@@ -26,5 +28,12 @@
     public String getLocalizedName() {
         return this.localname;
     }
+
+    /**
+     * Returns true if the module should be selected
+     */
+    public boolean isSelected() {
+        return this.selected;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 tw=80 :
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/Module.java	Fri Aug 31 11:29:44 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/Module.java	Fri Aug 31 13:21:26 2012 +0000
@@ -7,5 +7,7 @@
     String getName();
 
     String getLocalizedName();
+
+    boolean isSelected();
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 tw=80 :

http://dive4elements.wald.intevation.org