Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/fis/FISArtifact.java @ 82:5eb62df21f9a
Added Support for Vertical Profiles Marnet, STAUN, IMIS
gnv-artifacts/trunk@111 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 22 Sep 2009 13:20:30 +0000 |
parents | e33c61735a4e |
children | 1b12021905b9 |
comparison
equal
deleted
inserted
replaced
81:9b41f3688610 | 82:5eb62df21f9a |
---|---|
369 selectNode.appendChild(choiceNode); | 369 selectNode.appendChild(choiceNode); |
370 while (it.hasNext()){ | 370 while (it.hasNext()){ |
371 Product p = it.next(); | 371 Product p = it.next(); |
372 Element itemNode = xmlUtilities.createXFormElement(document, "item"); | 372 Element itemNode = xmlUtilities.createXFormElement(document, "item"); |
373 | 373 |
374 if (this.current != null && this.current.getName().equals(p.getName())){ | |
375 itemNode.setAttribute("selected", "true"); | |
376 } | |
374 | 377 |
375 Element choiceLableNode = xmlUtilities.createXFormElement(document, "label"); | 378 Element choiceLableNode = xmlUtilities.createXFormElement(document, "label"); |
376 choiceLableNode.setTextContent(p.getName()); | 379 choiceLableNode.setTextContent(p.getName()); |
377 itemNode.appendChild(choiceLableNode); | 380 itemNode.appendChild(choiceLableNode); |
378 | 381 |