diff flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java @ 2482:cef4c624c68c

Cosmetics. flys-client/trunk@4254 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 17 Apr 2012 14:40:19 +0000
parents 37438d7228b4
children 6f30bbd98618
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java	Tue Apr 17 14:20:35 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/CrossSectionChartThemePanel.java	Tue Apr 17 14:40:19 2012 +0000
@@ -386,6 +386,13 @@
     }
 
 
+    /**
+     * Callback for when a value has been accepted in the km-spinner
+     * of a Cross-Section Profile theme.
+     * @param item        The SpinnerItem which was manipulated.
+     * @param enteredKm   The double-parsed value that has been entered.
+     * @param facetRecord The underlying datastores record.
+     */
     public void spinnerValueEntered(final SpinnerItem item,
         final double enteredKm, final FacetRecord facetRecord
     ) {
@@ -407,7 +414,7 @@
 
         map.put(dbid, enteredKm);
 
-    
+        // Query the available cross section measurements.
         kmService.getCrossSectionKMs(locale, map, 2,
             new AsyncCallback<Map<Integer, Double[]>>() {
                 @Override
@@ -681,7 +688,7 @@
         Theme facetTheme = ((FacetRecord)records[0]).getTheme();
         String item = facetTheme.getFacet();
 
-        if(item.equals("cross_section")) {
+        if (item.equals("cross_section")) {
             // Synchron checking.
             MenuItem synchronNavigationMenuItem = new MenuItem();
             final String themeHash = themeHash(facetTheme);

http://dive4elements.wald.intevation.org