Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/ArtifactDescriptionFactory.java @ 61:f983d5ce6402
Display human readable strings of the selected values in the UI.
flys-client/trunk@1526 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 21 Mar 2011 09:21:01 +0000 |
parents | 1d0be51ab93b |
children | 8f719fa1a691 |
comparison
equal
deleted
inserted
replaced
60:f793d35bfb08 | 61:f983d5ce6402 |
---|---|
242 for (int i = 0; i < count; i++) { | 242 for (int i = 0; i < count; i++) { |
243 Node tmp = itemList.item(i); | 243 Node tmp = itemList.item(i); |
244 | 244 |
245 String value = XMLUtils.xpathString( | 245 String value = XMLUtils.xpathString( |
246 tmp, "@art:value", ArtifactNamespaceContext.INSTANCE); | 246 tmp, "@art:value", ArtifactNamespaceContext.INSTANCE); |
247 | 247 String label = XMLUtils.xpathString( |
248 // TODO extract the human readable value (description) from node | 248 tmp, "@art:label", ArtifactNamespaceContext.INSTANCE); |
249 items[i] = new DefaultDataItem(value, value, value); | 249 |
250 items[i] = new DefaultDataItem(label, label, value); | |
250 } | 251 } |
251 | 252 |
252 return items; | 253 return items; |
253 } | 254 } |
254 | 255 |