Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/chart/NaviChartOutputTab.java @ 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 | ea9eef426962 |
comparison
equal
deleted
inserted
replaced
5964:aaa5e5ac5b02 | 5965:e9e298724f03 |
---|---|
161 tbarPanel.deselectControls(); | 161 tbarPanel.deselectControls(); |
162 updateChartDown(); | 162 updateChartDown(); |
163 try { | 163 try { |
164 double d = Double.valueOf(collectionView.getCurrentKm()); | 164 double d = Double.valueOf(collectionView.getCurrentKm()); |
165 currentkm.setValue(nf.format(d)); | 165 currentkm.setValue(nf.format(d)); |
166 tbarPanel.onZoom(null); | |
166 } catch (NumberFormatException e) { | 167 } catch (NumberFormatException e) { |
167 currentkm.setValue(collectionView.getCurrentKm()); | 168 currentkm.setValue(collectionView.getCurrentKm()); |
168 } | 169 } |
169 } | 170 } |
170 }); | 171 }); |
174 tbarPanel.deselectControls(); | 175 tbarPanel.deselectControls(); |
175 updateChartUp(); | 176 updateChartUp(); |
176 try { | 177 try { |
177 double d = Double.valueOf(collectionView.getCurrentKm()); | 178 double d = Double.valueOf(collectionView.getCurrentKm()); |
178 currentkm.setValue(nf.format(d)); | 179 currentkm.setValue(nf.format(d)); |
180 tbarPanel.onZoom(null); | |
179 } catch (NumberFormatException e) { | 181 } catch (NumberFormatException e) { |
180 currentkm.setValue(collectionView.getCurrentKm()); | 182 currentkm.setValue(collectionView.getCurrentKm()); |
181 } | 183 } |
182 } | 184 } |
183 }); | 185 }); |
200 } | 202 } |
201 if (d <= collectionView.getMaxKm() && | 203 if (d <= collectionView.getMaxKm() && |
202 d >= collectionView.getMinKm()) { | 204 d >= collectionView.getMinKm()) { |
203 collectionView.setCurrentKm(d); | 205 collectionView.setCurrentKm(d); |
204 tbarPanel.updateLinks(); | 206 tbarPanel.updateLinks(); |
207 tbarPanel.onZoom(null); | |
205 if (right != null) { | 208 if (right != null) { |
206 updateChartPanel(); | 209 updateChartPanel(); |
207 updateChartInfo(); | 210 updateChartInfo(); |
208 } | 211 } |
209 } | 212 } |