Mercurial > dive4elements > river
changeset 1625:c45e8d6b99a2
#315 Added new state for entering a kilometer range without step width.
flys-artifacts/trunk@2800 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 21 Sep 2011 13:03:54 +0000 |
parents | 238145ef67da |
children | b9b47af71564 |
files | flys-artifacts/ChangeLog flys-artifacts/doc/conf/artifacts/winfo.xml flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DistanceOnlySelect.java |
diffstat | 3 files changed, 32 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Wed Sep 21 13:01:25 2011 +0000 +++ b/flys-artifacts/ChangeLog Wed Sep 21 13:03:54 2011 +0000 @@ -1,3 +1,13 @@ +2011-09-21 Ingo Weinzierl <ingo@intevation.de> + + flys/issue315 (Überschwemmungsfläche: String bei Streckenauswahl) + + * doc/conf/artifacts/winfo.xml: Added a new state for floodmap's range + input. This state will accept a km range only, there is no step width. + + * src/main/java/de/intevation/flys/artifacts/states/DistanceOnlySelect.java: + New. The state which is used to enter a km range with step width. + 2011-09-21 Felix Wolfsteller <felix.wolfsteller@intevation.de> Cosmetics, improved debug output, doc.
--- a/flys-artifacts/doc/conf/artifacts/winfo.xml Wed Sep 21 13:01:25 2011 +0000 +++ b/flys-artifacts/doc/conf/artifacts/winfo.xml Wed Sep 21 13:03:54 2011 +0000 @@ -23,7 +23,7 @@ <transition transition="de.intevation.flys.artifacts.transitions.ValueCompareTransition"> <from state="state.winfo.calculation_mode"/> - <to state="state.winfo.distance"/> + <to state="state.winfo.distance_only"/> <condition data="calculation_mode" value="calc.flood.map" operator="equal"/> </transition> @@ -70,6 +70,11 @@ </outputmodes> </state> + <state id="state.winfo.distance_only" description="state.winfo.distance_only" state="de.intevation.flys.artifacts.states.DistanceOnlySelect"> + <data name="ld_from" type="Double" /> + <data name="ld_to" type="Double" /> + </state> + <state id="state.winfo.distance" description="state.winfo.distance" state="de.intevation.flys.artifacts.states.DistanceSelect"> <data name="ld_from" type="Double" /> <data name="ld_to" type="Double" /> @@ -85,7 +90,7 @@ </state> <transition transition="de.intevation.flys.artifacts.transitions.ValueCompareTransition"> - <from state="state.winfo.distance"/> + <from state="state.winfo.distance_only"/> <to state="state.winfo.uesk.wsp"/> <condition data="calculation_mode" value="calc.flood.map" operator="equal"/> </transition>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DistanceOnlySelect.java Wed Sep 21 13:03:54 2011 +0000 @@ -0,0 +1,15 @@ +package de.intevation.flys.artifacts.states; + +import org.apache.log4j.Logger; + + +public class DistanceOnlySelect extends DistanceSelect { + + private static Logger logger = Logger.getLogger(DistanceOnlySelect.class); + + @Override + protected String getUIProvider() { + return "distance_only_panel"; + } +} +// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :