Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/WQInfoRecord.java @ 6371:19459037b3c7
GWT client: Display official lines in helper panels.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 19 Jun 2013 15:03:05 +0200 |
parents | ea9eef426962 |
children | 2ca1f3991e17 |
comparison
equal
deleted
inserted
replaced
6368:791c7492b4ee | 6371:19459037b3c7 |
---|---|
31 public WQInfoRecord(WQInfoObject info) { | 31 public WQInfoRecord(WQInfoObject info) { |
32 this.wqInfo = info; | 32 this.wqInfo = info; |
33 | 33 |
34 setName(info.getName()); | 34 setName(info.getName()); |
35 setType(info.getType()); | 35 setType(info.getType()); |
36 if (info.getValue() != null) | 36 setValue(info.getValue()); |
37 setValue(info.getValue()); | 37 setOfficial(info.isOfficial() ? "X" : ""); |
38 else | |
39 setValue(info.getValue()); | |
40 } | 38 } |
41 | 39 |
42 | 40 |
43 public void setName(String name) { | 41 public void setName(String name) { |
44 setAttribute("name", name); | 42 setAttribute("name", name); |
66 | 64 |
67 public double getValue() { | 65 public double getValue() { |
68 return getAttributeAsDouble("value"); | 66 return getAttributeAsDouble("value"); |
69 } | 67 } |
70 | 68 |
69 public void setOfficial(String value) { | |
70 setAttribute("official", value); | |
71 } | |
72 | |
73 public String getOfficial() { | |
74 return getAttributeAsString("official"); | |
75 } | |
76 | |
71 | 77 |
72 public WQInfoObject getWQInfo() { | 78 public WQInfoObject getWQInfo() { |
73 return wqInfo; | 79 return wqInfo; |
74 } | 80 } |
75 } | 81 } |