changeset 5965:e9e298724f03

issue1311: Update links on toolbar when km changed.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 10 May 2013 11:29:29 +0200
parents aaa5e5ac5b02
children b2e6a90ba0e6
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NaviChartOutputTab.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NaviChartOutputTab.java	Fri May 10 11:28:50 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NaviChartOutputTab.java	Fri May 10 11:29:29 2013 +0200
@@ -163,6 +163,7 @@
                 try {
                     double d = Double.valueOf(collectionView.getCurrentKm());
                     currentkm.setValue(nf.format(d));
+                    tbarPanel.onZoom(null);
                 } catch (NumberFormatException e) {
                     currentkm.setValue(collectionView.getCurrentKm());
                 }
@@ -176,6 +177,7 @@
                 try {
                     double d = Double.valueOf(collectionView.getCurrentKm());
                     currentkm.setValue(nf.format(d));
+                    tbarPanel.onZoom(null);
                 } catch (NumberFormatException e) {
                     currentkm.setValue(collectionView.getCurrentKm());
                 }
@@ -202,6 +204,7 @@
                             d >= collectionView.getMinKm()) {
                             collectionView.setCurrentKm(d);
                             tbarPanel.updateLinks();
+                            tbarPanel.onZoom(null);
                             if (right != null) {
                                 updateChartPanel();
                                 updateChartInfo();

http://dive4elements.wald.intevation.org