Mercurial > dive4elements > river
changeset 7760:5811dfe22897
Added list to module to store supported rivers.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 27 Feb 2014 15:11:59 +0100 |
parents | 1b48b74a2f11 |
children | 350a7cf09fbc |
files | gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultModule.java gwt-client/src/main/java/org/dive4elements/river/client/shared/model/Module.java |
diffstat | 2 files changed, 19 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 :
--- 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 :