Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/wq/QDTable.java @ 5774:496c8c9d4913
issue1260, issue1259: Improve multi-gauge w/q input.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Fri, 19 Apr 2013 12:44:55 +0200 |
parents | b296d435fc69 |
children |
comparison
equal
deleted
inserted
replaced
5773:cdc47534a970 | 5774:496c8c9d4913 |
---|---|
107 } | 107 } |
108 | 108 |
109 public boolean isLocked() { | 109 public boolean isLocked() { |
110 return lockClick; | 110 return lockClick; |
111 } | 111 } |
112 | |
113 /** | |
114 * Search all records for one with attribute name equals to given name. | |
115 * @return null if none found. | |
116 * */ | |
117 public Double findRecordValue(String name) { | |
118 for (ListGridRecord record : getRecords()) { | |
119 if (record.getAttribute("name").equals(name)) { | |
120 return record.getAttributeAsDouble("value"); | |
121 } | |
122 } | |
123 return null; | |
124 } | |
112 } | 125 } |
113 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 126 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |