Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java @ 4243:e68a710d9652
Convert GaugeOverviewInfoService into RiverInfoService
The service will be reused for the MeasurementStation info too and it returns a
RiverInfo in both cases. Therefore rename the current GaugeOverviewInfoService
into RiverInfoService.
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Wed, 24 Oct 2012 15:50:41 +0200 |
parents | 207de712d79d |
children | a1bc5b8cff0f |
comparison
equal
deleted
inserted
replaced
4242:448cbd8708d5 | 4243:e68a710d9652 |
---|---|
14 import com.smartgwt.client.widgets.layout.SectionStackSection; | 14 import com.smartgwt.client.widgets.layout.SectionStackSection; |
15 import com.smartgwt.client.widgets.layout.VLayout; | 15 import com.smartgwt.client.widgets.layout.VLayout; |
16 | 16 |
17 import de.intevation.flys.client.client.FLYS; | 17 import de.intevation.flys.client.client.FLYS; |
18 import de.intevation.flys.client.client.FLYSConstants; | 18 import de.intevation.flys.client.client.FLYSConstants; |
19 import de.intevation.flys.client.client.services.GaugeOverviewInfoService; | 19 import de.intevation.flys.client.client.services.RiverInfoService; |
20 import de.intevation.flys.client.client.services.GaugeOverviewInfoServiceAsync; | 20 import de.intevation.flys.client.client.services.RiverInfoServiceAsync; |
21 import de.intevation.flys.client.shared.model.DataList; | 21 import de.intevation.flys.client.shared.model.DataList; |
22 import de.intevation.flys.client.shared.model.RiverInfo; | 22 import de.intevation.flys.client.shared.model.RiverInfo; |
23 | 23 |
24 /** | 24 /** |
25 * The GaugePanel is intended to be used within a SectionStackSection | 25 * The GaugePanel is intended to be used within a SectionStackSection |
37 private String river; | 37 private String river; |
38 | 38 |
39 /** The message class that provides i18n strings.*/ | 39 /** The message class that provides i18n strings.*/ |
40 protected FLYSConstants MSG = GWT.create(FLYSConstants.class); | 40 protected FLYSConstants MSG = GWT.create(FLYSConstants.class); |
41 | 41 |
42 protected GaugeOverviewInfoServiceAsync gaugeOverviewInfoService = | 42 protected RiverInfoServiceAsync riverInfoService = |
43 GWT.create(GaugeOverviewInfoService.class); | 43 GWT.create(RiverInfoService.class); |
44 | 44 |
45 protected GaugeTree gaugetree; | 45 protected GaugeTree gaugetree; |
46 protected Canvas gaugetreecanvas; | 46 protected Canvas gaugetreecanvas; |
47 | 47 |
48 protected RiverInfoPanel riverinfopanel; | 48 protected RiverInfoPanel riverinfopanel; |
86 | 86 |
87 /** | 87 /** |
88 * Loads the river info and renders it afterwards | 88 * Loads the river info and renders it afterwards |
89 */ | 89 */ |
90 public void refresh() { | 90 public void refresh() { |
91 gaugeOverviewInfoService.getRiverInfo(this.river, new AsyncCallback<RiverInfo>() { | 91 riverInfoService.getGauges(this.river, new AsyncCallback<RiverInfo>() { |
92 @Override | 92 @Override |
93 public void onFailure(Throwable e) { | 93 public void onFailure(Throwable e) { |
94 GWT.log("Could not load the river info." + e); | 94 GWT.log("Could not load the river info." + e); |
95 } | 95 } |
96 | 96 |