Mercurial > dive4elements > river
changeset 588:809756dda091
#132 Set the initial mode of the location/distance panel to 'distance'.
flys-client/trunk@2183 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 21 Jun 2011 16:41:09 +0000 |
parents | 53ad6dd2cb2b |
children | 942bd0e7e332 |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java |
diffstat | 2 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Tue Jun 21 16:22:39 2011 +0000 +++ b/flys-client/ChangeLog Tue Jun 21 16:41:09 2011 +0000 @@ -1,3 +1,10 @@ +2011-06-21 Ingo Weinzierl <ingo@intevation.de> + + flys/issue132 (WINFO: Streckenauswahl per default setzen) + + * src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java: + Set the initial mode to "distance". + 2011-06-21 Ingo Weinzierl <ingo@intevation.de> * src/main/java/de/intevation/flys/client/server/DescribeCollectionServiceImpl.java,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java Tue Jun 21 16:22:39 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java Tue Jun 21 16:41:09 2011 +0000 @@ -504,7 +504,7 @@ String mDefValue = mDef != null ? mDef.getStringValue() : null; String theMode = mDefValue != null && mDefValue.length() > 0 ? mDef.getStringValue() - : FIELD_VALUE_LOCATION; + : FIELD_VALUE_DISTANCE; mode.setValue(FIELD_MODE, theMode); @@ -533,6 +533,7 @@ if (theMode.equals(FIELD_VALUE_DISTANCE)) { enableDistancePanel(); + inputTables.selectTab(1); } } @@ -1003,7 +1004,7 @@ values.put(FIELD_VALUE_DISTANCE, MESSAGES.distance()); LinkedHashMap initial = new LinkedHashMap(); - initial.put(FIELD_MODE, FIELD_VALUE_LOCATION); + initial.put(FIELD_MODE, FIELD_VALUE_DISTANCE); radio.setValueMap(values); radio.addChangeHandler(this);