Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
3864:c434dd2e84cf | 3865:436eec3be6ff |
---|---|
11 import com.smartgwt.client.widgets.events.ResizedEvent; | 11 import com.smartgwt.client.widgets.events.ResizedEvent; |
12 import com.smartgwt.client.widgets.events.ResizedHandler; | 12 import com.smartgwt.client.widgets.events.ResizedHandler; |
13 import com.smartgwt.client.widgets.layout.SectionStackSection; | 13 import com.smartgwt.client.widgets.layout.SectionStackSection; |
14 import com.smartgwt.client.widgets.layout.VLayout; | 14 import com.smartgwt.client.widgets.layout.VLayout; |
15 | 15 |
16 import de.intevation.flys.client.client.FLYS; | |
16 import de.intevation.flys.client.client.FLYSConstants; | 17 import de.intevation.flys.client.client.FLYSConstants; |
17 import de.intevation.flys.client.client.services.GaugeOverviewInfoService; | 18 import de.intevation.flys.client.client.services.GaugeOverviewInfoService; |
18 import de.intevation.flys.client.client.services.GaugeOverviewInfoServiceAsync; | 19 import de.intevation.flys.client.client.services.GaugeOverviewInfoServiceAsync; |
19 import de.intevation.flys.client.shared.model.DataList; | 20 import de.intevation.flys.client.shared.model.DataList; |
20 import de.intevation.flys.client.shared.model.RiverInfo; | 21 import de.intevation.flys.client.shared.model.RiverInfo; |
35 private String river; | 36 private String river; |
36 | 37 |
37 /** The message class that provides i18n strings.*/ | 38 /** The message class that provides i18n strings.*/ |
38 protected FLYSConstants MSG = GWT.create(FLYSConstants.class); | 39 protected FLYSConstants MSG = GWT.create(FLYSConstants.class); |
39 | 40 |
41 private FLYS flys; | |
42 | |
40 protected GaugeOverviewInfoServiceAsync gaugeOverviewInfoService = | 43 protected GaugeOverviewInfoServiceAsync gaugeOverviewInfoService = |
41 GWT.create(GaugeOverviewInfoService.class); | 44 GWT.create(GaugeOverviewInfoService.class); |
42 | 45 |
43 protected GaugeTree gaugetree = new GaugeTree(); | 46 protected GaugeTree gaugetree; |
44 | 47 |
45 protected RiverInfoPanel riverinfopanel; | 48 protected RiverInfoPanel riverinfopanel; |
46 | 49 |
47 /** | 50 /** |
48 * Creates a new VLayout with a SectionStackSection | 51 * Creates a new VLayout with a SectionStackSection |
49 * The GaugePanel's SectionStackSection is hidden by default. | 52 * The GaugePanel's SectionStackSection is hidden by default. |
53 * | |
54 * @param flys The FLYS object | |
50 * @param sectionStack The section stack section to place the VLayout in. | 55 * @param sectionStack The section stack section to place the VLayout in. |
51 */ | 56 */ |
52 public GaugePanel(SectionStackSection sectionStack) { | 57 public GaugePanel(FLYS flys, SectionStackSection sectionStack) { |
58 gaugetree = new GaugeTree(flys); | |
53 setOverflow(Overflow.HIDDEN); | 59 setOverflow(Overflow.HIDDEN); |
54 sectionStack.setHidden(true); | 60 sectionStack.setHidden(true); |
55 sectionStack.setItems(this); | 61 sectionStack.setItems(this); |
56 this.sectionStack = sectionStack; | 62 this.sectionStack = sectionStack; |
57 setStyleName("gaugepanel"); | 63 setStyleName("gaugepanel"); |