Mercurial > dive4elements > river
changeset 824:3fe265b47675
Added a NoInputPanel to suppress the creation of an input panel.
flys-client/trunk@2520 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 22 Aug 2011 10:46:49 +0000 |
parents | 407de0f4b66a |
children | 1b9b7e9ab219 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/NoInputPanel.java flys-client/src/main/java/de/intevation/flys/client/client/ui/UIProviderFactory.java |
diffstat | 3 files changed, 44 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <ingo@intevation.de> + + * 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 <ingo@intevation.de> * src/main/java/de/intevation/flys/client/client/ui/map/MapOutputTab.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 :
--- 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(); }