Mercurial > dive4elements > river
changeset 8446:75b84f139c1b
(issue1733) Clearly set location distance defaults
This fixes the default values for the distance panel.
The data values were set in initDefaults after the ctor.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 27 Oct 2014 12:32:04 +0100 |
parents | fe43340352bc |
children | 4b315e5d2d4f |
files | gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.java |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.java Fri Oct 24 16:31:22 2014 +0200 +++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/LocationDistancePanel.java Mon Oct 27 12:32:04 2014 +0100 @@ -696,6 +696,8 @@ inputTables.selectTab(1); } currentFiltered = (ListGrid)inputTables.getSelectedTab().getPane(); + + distancePanel.setValues(getFrom(), getTo(), getStep()); } @@ -704,16 +706,16 @@ container = new HLayout(); Canvas checkboxPanel = createRadioButtonPanel(); - // the initial view will display the location input mode locationPanel = new DoubleArrayPanel( MESSAGES.unitLocation(), getLocationValues(), this); + distancePanel = new DoubleRangePanel( - MESSAGES.unitFrom(), MESSAGES.unitTo(), MESSAGES.unitWidth(), - getFrom(), getTo(), getStep(), - 400, - this); + MESSAGES.unitFrom(), MESSAGES.unitTo(), MESSAGES.unitWidth(), + 0, 0, 0, /* initDefaults set the default values for this. */ + 400, + this); container.addMember(locationPanel); container.addMember(distancePanel);