Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionBase.java @ 190:baaa1618fa27
Changed the displayed-Values as defined in issue47
gnv-artifacts/trunk@238 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Mon, 19 Oct 2009 09:18:40 +0000 |
parents | 1b2fc94766c9 |
children | 17987acf20d0 |
comparison
equal
deleted
inserted
replaced
189:af354567b421 | 190:baaa1618fa27 |
---|---|
519 | 519 |
520 if (max instanceof GregorianCalendar) { | 520 if (max instanceof GregorianCalendar) { |
521 Date d = ((GregorianCalendar) max).getTime(); | 521 Date d = ((GregorianCalendar) max).getTime(); |
522 max = DateUtils.getPatternedDateAmer(d); | 522 max = DateUtils.getPatternedDateAmer(d); |
523 } | 523 } |
524 | |
525 Element groupNode = xmlutilities.createXFormElement( | |
526 document, "group"); | |
527 groupNode.setAttribute("ref", descibeData.getMinName()); | |
528 Element groupNodeLableNode = xmlutilities | |
529 .createXFormElement(document, "label"); | |
530 groupNodeLableNode.setTextContent(RessourceFactory | |
531 .getInstance().getRessource( | |
532 callMeta.getLanguages(), | |
533 descibeData.getMinName(), | |
534 descibeData.getMinName())); | |
535 groupNode.appendChild(groupNodeLableNode); | |
524 | 536 |
525 Element inputMinNode = xmlutilities.createXFormElement( | 537 Element inputMinNode = xmlutilities.createXFormElement( |
526 document, "input"); | 538 document, "input"); |
527 inputMinNode.setAttribute("ref", "minvalue"); | 539 inputMinNode.setAttribute("ref", "minvalue"); |
528 Element inputMinLableNode = xmlutilities | 540 Element inputMinLableNode = xmlutilities |
552 Element inputMaxValueNode = xmlutilities | 564 Element inputMaxValueNode = xmlutilities |
553 .createXFormElement(document, "value"); | 565 .createXFormElement(document, "value"); |
554 inputMaxValueNode.setTextContent(max.toString()); | 566 inputMaxValueNode.setTextContent(max.toString()); |
555 inputMaxNode.appendChild(inputMaxValueNode); | 567 inputMaxNode.appendChild(inputMaxValueNode); |
556 | 568 |
569 groupNode.appendChild(inputMinNode); | |
570 groupNode.appendChild(inputMaxNode); | |
571 | |
557 if (!it.hasNext()) { | 572 if (!it.hasNext()) { |
558 dynamic.appendChild(inputMinNode); | 573 dynamic.appendChild(groupNode); |
559 dynamic.appendChild(inputMaxNode); | |
560 } else { | 574 } else { |
561 staticNode.appendChild(inputMinNode); | 575 staticNode.appendChild(groupNode); |
562 staticNode.appendChild(inputMaxNode); | |
563 } | 576 } |
564 } else if (o instanceof SingleValueDescribeData) { | 577 } else if (o instanceof SingleValueDescribeData) { |
565 | 578 |
566 SingleValueDescribeData svdb = (SingleValueDescribeData) o; | 579 SingleValueDescribeData svdb = (SingleValueDescribeData) o; |
567 | 580 |