diff flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java @ 3865:436eec3be6ff

Allow to create a discharge curve from a gauge info This is only a draft yet. flys-client/trunk@5639 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Fri, 28 Sep 2012 08:57:48 +0000
parents f3b821735e39
children 22cd60315e08
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java	Fri Sep 28 08:52:53 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java	Fri Sep 28 08:57:48 2012 +0000
@@ -13,6 +13,7 @@
 import com.smartgwt.client.widgets.layout.SectionStackSection;
 import com.smartgwt.client.widgets.layout.VLayout;
 
+import de.intevation.flys.client.client.FLYS;
 import de.intevation.flys.client.client.FLYSConstants;
 import de.intevation.flys.client.client.services.GaugeOverviewInfoService;
 import de.intevation.flys.client.client.services.GaugeOverviewInfoServiceAsync;
@@ -37,19 +38,24 @@
     /** The message class that provides i18n strings.*/
     protected FLYSConstants MSG = GWT.create(FLYSConstants.class);
 
+    private FLYS flys;
+
     protected GaugeOverviewInfoServiceAsync gaugeOverviewInfoService =
         GWT.create(GaugeOverviewInfoService.class);
 
-    protected GaugeTree gaugetree = new GaugeTree();
+    protected GaugeTree gaugetree;
 
     protected RiverInfoPanel riverinfopanel;
 
     /**
      * Creates a new VLayout with a SectionStackSection
      * The GaugePanel's SectionStackSection is hidden by default.
+     *
+     * @param flys The FLYS object
      * @param sectionStack The section stack section to place the VLayout in.
      */
-    public GaugePanel(SectionStackSection sectionStack) {
+    public GaugePanel(FLYS flys, SectionStackSection sectionStack) {
+        gaugetree = new GaugeTree(flys);
         setOverflow(Overflow.HIDDEN);
         sectionStack.setHidden(true);
         sectionStack.setItems(this);

http://dive4elements.wald.intevation.org