# HG changeset patch # User Ingo Weinzierl # Date 1337091780 0 # Node ID 39cf246b28c498efaa9b38772463a3057027f055 # Parent 885b0213052820bcf069da82c91c6655b06c150d Revert last commit which contains configuration modifications. flys-client/trunk@4411 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 885b02130528 -r 39cf246b28c4 flys-client/ChangeLog --- a/flys-client/ChangeLog Tue May 15 14:21:39 2012 +0000 +++ b/flys-client/ChangeLog Tue May 15 14:23:00 2012 +0000 @@ -1,9 +1,3 @@ -2012-05-15 Ingo Weinzierl - - * src/main/java/de/intevation/flys/client/client/ui/ParameterMatrixPanel.java: - Implemented getData() which now returns the selected values from - ParameterMatrix as colon separated string. - 2012-05-14 Felix Wolfsteller * src/main/java/de/intevation/flys/client/client/ui/ModuleSelection.java: diff -r 885b02130528 -r 39cf246b28c4 flys-client/pom.xml --- a/flys-client/pom.xml Tue May 15 14:21:39 2012 +0000 +++ b/flys-client/pom.xml Tue May 15 14:23:00 2012 +0000 @@ -129,9 +129,6 @@ target/www true - 8881 - 9991 - INFO' -bindAddress 0.0.0.0 -codeServerPort 9991 -logLevel 'INFO diff -r 885b02130528 -r 39cf246b28c4 flys-client/src/main/java/de/intevation/flys/client/client/config.xml --- a/flys-client/src/main/java/de/intevation/flys/client/client/config.xml Tue May 15 14:21:39 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/config.xml Tue May 15 14:23:00 2012 +0000 @@ -1,5 +1,5 @@ - http://localhost:1610 + http://localhost:8181 diff -r 885b02130528 -r 39cf246b28c4 flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterMatrixPanel.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterMatrixPanel.java Tue May 15 14:21:39 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterMatrixPanel.java Tue May 15 14:23:00 2012 +0000 @@ -1,9 +1,5 @@ package de.intevation.flys.client.client.ui; -import java.util.List; -import java.util.Map; -import java.util.Set; - import com.google.gwt.core.client.GWT; import com.smartgwt.client.types.FieldType; @@ -14,8 +10,6 @@ import de.intevation.flys.client.shared.model.Data; import de.intevation.flys.client.shared.model.DataItem; import de.intevation.flys.client.shared.model.DataList; -import de.intevation.flys.client.shared.model.DefaultData; -import de.intevation.flys.client.shared.model.DefaultDataItem; import de.intevation.flys.client.shared.model.IntegerOptionsData; /** @@ -23,52 +17,12 @@ */ public class ParameterMatrixPanel extends AbstractUIProvider { - private ParameterMatrix matrix; - @Override protected Data[] getData() { - Map> selection = matrix.getSelection(); - Set>> entries = selection.entrySet(); - - Data[] list = new Data[selection.size()]; - - int i = 0; - - for (Map.Entry> entry: entries) { - String value = buildValueString(entry.getValue()); - - DataItem item = new DefaultDataItem( - entry.getKey(), - null, - value); - - list[i++] = new DefaultData( - entry.getKey(), null, null, new DataItem[] { item }); - } - - return list; + GWT.log("TODO: IMPLEMENT RadioPanel.getData()"); + return new Data[0]; } - - protected String buildValueString(List values) { - StringBuilder sb = new StringBuilder(); - - boolean first = true; - - for (String value: values) { - if (!first) { - sb.append(";"); - } - - sb.append(value); - - first = false; - } - - return sb.toString(); - } - - @Override public Canvas createOld(DataList dataList) { GWT.log("TODO: IMPLEMENT RadioPanel.createOld()"); @@ -80,7 +34,7 @@ VLayout v = new VLayout(); v.addMember(createTitle(dataList)); - matrix = new ParameterMatrix(); + ParameterMatrix matrix = new ParameterMatrix(); for (Data data: dataList.getAll()) { if (data instanceof IntegerOptionsData) { @@ -89,7 +43,6 @@ } v.addMember(matrix.create()); - v.addMember(getNextButton()); return v; } diff -r 885b02130528 -r 39cf246b28c4 flys-client/src/main/webapp/WEB-INF/web.xml --- a/flys-client/src/main/webapp/WEB-INF/web.xml Tue May 15 14:21:39 2012 +0000 +++ b/flys-client/src/main/webapp/WEB-INF/web.xml Tue May 15 14:23:00 2012 +0000 @@ -7,7 +7,7 @@ server-url - http://localhost:1610 + http://localhost:8181