[PATCH 11 of 17] Added list to module to store supported rivers

Wald Commits scm-commit at wald.intevation.org
Thu Feb 27 16:47:57 CET 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1393510319 -3600
# Node ID 5811dfe228978f99295b91d6126ee6ea8edca530
# Parent  1b48b74a2f113226f36ca757eac75f71c858546a
Added list to module to store supported rivers.

diff -r 1b48b74a2f11 -r 5811dfe22897 gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultModule.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultModule.java	Thu Feb 27 15:10:44 2014 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultModule.java	Thu Feb 27 15:11:59 2014 +0100
@@ -8,19 +8,27 @@
 
 package org.dive4elements.river.client.shared.model;
 
+import java.util.List;
+
 public class DefaultModule implements Module {
 
     private String name;
     private String localname;
     private boolean selected = false;
+    private List<String> rivers;
 
     public DefaultModule() {
     }
 
-    public DefaultModule(String name, String localname, boolean selected) {
+    public DefaultModule(
+        String name,
+        String localname,
+        boolean selected,
+        List<String> rivers) {
         this.name = name;
         this.localname = localname;
         this.selected = selected;
+        this.rivers = rivers;
     }
 
     /**
@@ -43,5 +51,12 @@
     public boolean isSelected() {
         return this.selected;
     }
+
+    /**
+     * @return the rivers
+     */
+    public List<String> getRivers() {
+        return this.rivers;
+    }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 tw=80 :
diff -r 1b48b74a2f11 -r 5811dfe22897 gwt-client/src/main/java/org/dive4elements/river/client/shared/model/Module.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/Module.java	Thu Feb 27 15:10:44 2014 +0100
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/shared/model/Module.java	Thu Feb 27 15:11:59 2014 +0100
@@ -9,6 +9,7 @@
 package org.dive4elements.river.client.shared.model;
 
 import java.io.Serializable;
+import java.util.List;
 
 public interface Module extends Serializable {
 
@@ -17,5 +18,7 @@
     String getLocalizedName();
 
     boolean isSelected();
+
+    List<String> getRivers();
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 tw=80 :


More information about the Dive4elements-commits mailing list