# HG changeset patch # User Ingo Weinzierl # Date 1314010009 0 # Node ID 3fe265b47675437f4d72587ad60cb4a367e82581 # Parent 407de0f4b66a6ee7e6ca8daede86292bd4cbf078 Added a NoInputPanel to suppress the creation of an input panel. flys-client/trunk@2520 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 407de0f4b66a -r 3fe265b47675 flys-client/ChangeLog --- a/flys-client/ChangeLog Fri Aug 19 15:57:23 2011 +0000 +++ b/flys-client/ChangeLog Mon Aug 22 10:46:49 2011 +0000 @@ -1,3 +1,15 @@ +2011-08-22 Ingo Weinzierl + + * src/main/java/de/intevation/flys/client/client/ui/NoInputPanel.java: + This panel is used to suppress the creation of an input panel. + Currently, this panel is used in the floodmap state. This state is able + to save geometries, but we currently don't want to insert GeoJSON + strings manually. + + * src/main/java/de/intevation/flys/client/client/ui/UIProviderFactory.java: + Instantiate the NoInputPanel if the ui provider string "noinput" is + specified. + 2011-08-19 Ingo Weinzierl * src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.java: diff -r 407de0f4b66a -r 3fe265b47675 flys-client/src/main/java/de/intevation/flys/client/client/ui/NoInputPanel.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/NoInputPanel.java Mon Aug 22 10:46:49 2011 +0000 @@ -0,0 +1,29 @@ +package de.intevation.flys.client.client.ui; + +import com.smartgwt.client.widgets.Canvas; + +import de.intevation.flys.client.shared.model.Data; +import de.intevation.flys.client.shared.model.DataList; + + +public class NoInputPanel +extends AbstractUIProvider +{ + @Override + public Canvas create(DataList data) { + return new Canvas(); + } + + + @Override + public Canvas createOld(DataList dataList) { + return new Canvas(); + } + + + @Override + protected Data[] getData() { + return null; + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : diff -r 407de0f4b66a -r 3fe265b47675 flys-client/src/main/java/de/intevation/flys/client/client/ui/UIProviderFactory.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/UIProviderFactory.java Fri Aug 19 15:57:23 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/UIProviderFactory.java Mon Aug 22 10:46:49 2011 +0000 @@ -46,6 +46,9 @@ else if (uiProvider.equals("boolean_panel")) { return new BooleanPanel(); } + else if (uiProvider.equals("noinput")) { + return new NoInputPanel(); + } else { return new SelectProvider(); }