Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/ModuleSelection.java @ 4131:360e22afb98b
Cosmetics, warnings and minor TODOs.
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Mon, 15 Oct 2012 00:04:35 +0200 |
parents | 8c9c202292fe |
children | 2aabd9752d5e |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ModuleSelection.java Sun Oct 14 14:44:28 2012 +0200 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ModuleSelection.java Mon Oct 15 00:04:35 2012 +0200 @@ -1,7 +1,5 @@ package de.intevation.flys.client.client.ui; -import java.util.LinkedHashMap; - import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.AsyncCallback; @@ -14,6 +12,8 @@ import com.smartgwt.client.widgets.layout.HLayout; import com.smartgwt.client.widgets.layout.VLayout; +import de.intevation.flys.client.client.Config; +import de.intevation.flys.client.client.FLYSConstants; import de.intevation.flys.client.client.services.ModuleService; import de.intevation.flys.client.client.services.ModuleServiceAsync; import de.intevation.flys.client.shared.model.Data; @@ -23,8 +23,7 @@ import de.intevation.flys.client.shared.model.DefaultDataItem; import de.intevation.flys.client.shared.model.Module; -import de.intevation.flys.client.client.Config; -import de.intevation.flys.client.client.FLYSConstants; +import java.util.LinkedHashMap; /** * The ModuleSelection combines the river selection and the module selection in @@ -36,6 +35,8 @@ */ public class ModuleSelection extends MapSelection { + private static final long serialVersionUID = -5634831815175543328L; + /** The message class that provides i18n strings.*/ protected FLYSConstants MESSAGES = GWT.create(FLYSConstants.class); @@ -65,6 +66,7 @@ * * @return the module selection combined with the river selection. */ + @Override public Canvas create(DataList data) { GWT.log("ModuleSelection - create()"); VLayout newLayout = new VLayout(); @@ -100,7 +102,7 @@ } private void setModules() { - LinkedHashMap values = new LinkedHashMap(); + LinkedHashMap<String, String> values = new LinkedHashMap<String, String>(); if (this.modules!= null) { for(Module module : this.modules) { @@ -158,6 +160,7 @@ * * @return the Data that was chosen in this widget. */ + @Override protected Data[] getData() { String module = radio.getValueAsString();