Mercurial > dive4elements > river
annotate gwt-client/src/main/java/org/dive4elements/river/client/shared/model/GaugeInfoResultImpl.java @ 9412:0fb76f2d4e5b
bundu wst time range globalErrorMsg to client - no error thrown
author | gernotbelger |
---|---|
date | Thu, 16 Aug 2018 11:40:28 +0200 |
parents | gwt-client/src/main/java/org/dive4elements/river/client/shared/model/GaugeInfoObjectImpl.java@bc9a45d2b1fa |
children |
rev | line source |
---|---|
9404 | 1 /* Copyright (C) 2011, 2012, 2013 by Bundesanstalt für Gewässerkunde |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU AGPL (>=v3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out the | |
6 * documentation coming with Dive4Elements River for details. | |
7 */ | |
8 | |
9 package org.dive4elements.river.client.shared.model; | |
10 | |
11 /** | |
12 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> | |
13 */ | |
9412
0fb76f2d4e5b
bundu wst time range globalErrorMsg to client - no error thrown
gernotbelger
parents:
9404
diff
changeset
|
14 public class GaugeInfoResultImpl implements GaugeInfoResult { |
9404 | 15 |
16 private static final long serialVersionUID = 1L; | |
17 | |
9412
0fb76f2d4e5b
bundu wst time range globalErrorMsg to client - no error thrown
gernotbelger
parents:
9404
diff
changeset
|
18 GaugeInfoObject[] gauges; // NO LIST, SERIALIZE-Problem// = new ArrayList<GaugeInfoObject>(); |
9404 | 19 |
9412
0fb76f2d4e5b
bundu wst time range globalErrorMsg to client - no error thrown
gernotbelger
parents:
9404
diff
changeset
|
20 String globalErrorMsg; |
9404 | 21 |
9412
0fb76f2d4e5b
bundu wst time range globalErrorMsg to client - no error thrown
gernotbelger
parents:
9404
diff
changeset
|
22 public GaugeInfoResultImpl() { |
9404 | 23 |
24 } | |
25 | |
9412
0fb76f2d4e5b
bundu wst time range globalErrorMsg to client - no error thrown
gernotbelger
parents:
9404
diff
changeset
|
26 public GaugeInfoResultImpl(final String globalErrorMsg, final GaugeInfoObject[] gauges) { |
0fb76f2d4e5b
bundu wst time range globalErrorMsg to client - no error thrown
gernotbelger
parents:
9404
diff
changeset
|
27 this.globalErrorMsg = globalErrorMsg; |
0fb76f2d4e5b
bundu wst time range globalErrorMsg to client - no error thrown
gernotbelger
parents:
9404
diff
changeset
|
28 this.gauges = gauges; |
9404 | 29 } |
30 | |
31 @Override | |
9412
0fb76f2d4e5b
bundu wst time range globalErrorMsg to client - no error thrown
gernotbelger
parents:
9404
diff
changeset
|
32 public String getGlobalErrorMsg() { |
9404 | 33 |
9412
0fb76f2d4e5b
bundu wst time range globalErrorMsg to client - no error thrown
gernotbelger
parents:
9404
diff
changeset
|
34 return this.globalErrorMsg; |
9404 | 35 } |
36 | |
37 @Override | |
9412
0fb76f2d4e5b
bundu wst time range globalErrorMsg to client - no error thrown
gernotbelger
parents:
9404
diff
changeset
|
38 public GaugeInfoObject[] getGaugeInfoObjects() { |
9404 | 39 |
9412
0fb76f2d4e5b
bundu wst time range globalErrorMsg to client - no error thrown
gernotbelger
parents:
9404
diff
changeset
|
40 return this.gauges; |
9404 | 41 } |
42 | |
43 } |