Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java @ 4133:c722c08cf502
Merged heads.
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 15 Oct 2012 09:31:50 +0200 |
parents | 360e22afb98b |
children | 9be8d7942284 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java Mon Oct 15 09:29:25 2012 +0200 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java Mon Oct 15 09:31:50 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);