diff flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java @ 4131:360e22afb98b

Cosmetics, warnings and minor TODOs.
author Christian Lins <christian.lins@intevation.de>
date Mon, 15 Oct 2012 00:04:35 +0200
parents 22cd60315e08
children 9be8d7942284
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java	Sun Oct 14 14:44:28 2012 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java	Mon Oct 15 00:04:35 2012 +0200
@@ -21,7 +21,7 @@
 import de.intevation.flys.client.shared.model.RiverInfo;
 
 /**
- * The GaugePanel is intendet to be used within a SectionStackSection
+ * The GaugePanel is intended to be used within a SectionStackSection
  * It extends the VLayout by two methods to show and hide the
  * section stack section.
  *
@@ -38,8 +38,6 @@
     /** The message class that provides i18n strings.*/
     protected FLYSConstants MSG = GWT.create(FLYSConstants.class);
 
-    private FLYS flys;
-
     protected GaugeOverviewInfoServiceAsync gaugeOverviewInfoService =
         GWT.create(GaugeOverviewInfoService.class);
 
@@ -86,10 +84,12 @@
      */
     public void refresh() {
         gaugeOverviewInfoService.getRiverInfo(this.river, new AsyncCallback<RiverInfo>() {
+            @Override
             public void onFailure(Throwable e) {
                 GWT.log("Could not load the river info." + e);
             }
 
+            @Override
             public void onSuccess(RiverInfo riverinfo) {
                 GWT.log("Loaded river info");
                 renderGaugeOverviewInfo(riverinfo);
@@ -128,6 +128,7 @@
     /**
      * Hide the section stack section.
      */
+    @Override
     public void hide() {
         GWT.log("GaugePanel - hide");
         this.sectionStack.setHidden(true);
@@ -136,6 +137,7 @@
     /**
      * Show the section stack section.
      */
+    @Override
     public void show() {
         GWT.log("GaugePanel - show");
         this.sectionStack.setHidden(false);

http://dive4elements.wald.intevation.org