Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/WQInfoRecord.java @ 7557:2ca1f3991e17
issue1542: Make WQInfoObjects and server provide start and end date for mainvalues, display in table.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 12 Nov 2013 17:11:51 +0100 |
parents | 19459037b3c7 |
children |
comparison
equal
deleted
inserted
replaced
7556:7597bae608b3 | 7557:2ca1f3991e17 |
---|---|
6 * documentation coming with Dive4Elements River for details. | 6 * documentation coming with Dive4Elements River for details. |
7 */ | 7 */ |
8 | 8 |
9 package org.dive4elements.river.client.shared.model; | 9 package org.dive4elements.river.client.shared.model; |
10 | 10 |
11 import java.util.Date; | |
11 import com.smartgwt.client.widgets.grid.ListGridRecord; | 12 import com.smartgwt.client.widgets.grid.ListGridRecord; |
12 | 13 |
13 | 14 |
14 /** | 15 /** |
15 * The WQInfoRecord is a wrapper to put WQ Info objects into | 16 * The WQInfoRecord is a wrapper to put WQ Info objects into |
32 this.wqInfo = info; | 33 this.wqInfo = info; |
33 | 34 |
34 setName(info.getName()); | 35 setName(info.getName()); |
35 setType(info.getType()); | 36 setType(info.getType()); |
36 setValue(info.getValue()); | 37 setValue(info.getValue()); |
38 setStartTime(info.getStartTime()); | |
39 setStopTime(info.getStopTime()); | |
37 setOfficial(info.isOfficial() ? "X" : ""); | 40 setOfficial(info.isOfficial() ? "X" : ""); |
38 } | 41 } |
39 | 42 |
40 | 43 |
41 public void setName(String name) { | 44 public void setName(String name) { |
64 | 67 |
65 public double getValue() { | 68 public double getValue() { |
66 return getAttributeAsDouble("value"); | 69 return getAttributeAsDouble("value"); |
67 } | 70 } |
68 | 71 |
72 public void setStartTime(Date value) { | |
73 setAttribute("starttime", value); | |
74 } | |
75 | |
76 public Date getStartTime() { | |
77 return getAttributeAsDate("starttime"); | |
78 } | |
79 | |
80 public void setStopTime(Date value) { | |
81 setAttribute("stoptime", value); | |
82 } | |
83 | |
84 public Date getStopTime() { | |
85 return getAttributeAsDate("stoptime"); | |
86 } | |
87 | |
69 public void setOfficial(String value) { | 88 public void setOfficial(String value) { |
70 setAttribute("official", value); | 89 setAttribute("official", value); |
71 } | 90 } |
72 | 91 |
73 public String getOfficial() { | 92 public String getOfficial() { |