Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultGaugeInfo.java @ 3847:f3b821735e39
Calculate the info url via i18n
Don't fetch the info url from the artifact service and use i18n to calculate the
url by using the official gauge and river number.
flys-client/trunk@5582 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Bjoern Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 24 Sep 2012 08:39:22 +0000 |
parents | 8e169e4e1b57 |
children | 87605bd9667c |
comparison
equal
deleted
inserted
replaced
3846:84a48acabd78 | 3847:f3b821735e39 |
---|---|
15 private Double minw; | 15 private Double minw; |
16 private Double maxw; | 16 private Double maxw; |
17 private boolean kmup; | 17 private boolean kmup; |
18 private Double station; | 18 private Double station; |
19 private String wstunit; | 19 private String wstunit; |
20 private String infourl; | |
21 private Long officialnumber; | 20 private Long officialnumber; |
22 | 21 |
23 public DefaultGaugeInfo() { | 22 public DefaultGaugeInfo() { |
24 } | 23 } |
25 | 24 |
34 Double minq, | 33 Double minq, |
35 Double maxq, | 34 Double maxq, |
36 Double minw, | 35 Double minw, |
37 Double maxw, | 36 Double maxw, |
38 String wstunit, | 37 String wstunit, |
39 String infourl, | |
40 Long official) | 38 Long official) |
41 { | 39 { |
42 this.name = name; | 40 this.name = name; |
43 this.station = station; | 41 this.station = station; |
44 this.start = start; | 42 this.start = start; |
48 this.minq = minq; | 46 this.minq = minq; |
49 this.maxq = maxq; | 47 this.maxq = maxq; |
50 this.minw = minw; | 48 this.minw = minw; |
51 this.maxw = maxw; | 49 this.maxw = maxw; |
52 this.wstunit = wstunit; | 50 this.wstunit = wstunit; |
53 this.infourl = infourl; | |
54 this.officialnumber = official; | 51 this.officialnumber = official; |
55 } | 52 } |
56 /** | 53 /** |
57 * Returns the name of the gauge | 54 * Returns the name of the gauge |
58 */ | 55 */ |
133 public String getWstUnit() { | 130 public String getWstUnit() { |
134 return this.wstunit; | 131 return this.wstunit; |
135 } | 132 } |
136 | 133 |
137 /** | 134 /** |
138 * Returns the URL where to find additional information about this gauge | |
139 */ | |
140 public String getInfoURL() { | |
141 return this.infourl; | |
142 } | |
143 | |
144 /** | |
145 * Returns the official number of this gauge | 135 * Returns the official number of this gauge |
146 */ | 136 */ |
147 public Long getOfficialNumber() { | 137 public Long getOfficialNumber() { |
148 return this.officialnumber; | 138 return this.officialnumber; |
149 } | 139 } |