comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/TransitionBase.java @ 195:63f65fb9f210

Added uniform Visualization of Single Input-Elements to MinMax-Elements. issue55 gnv-artifacts/trunk@247 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 19 Oct 2009 13:33:36 +0000
parents 17987acf20d0
children 734ac082c8d1
comparison
equal deleted inserted replaced
194:00c1a931b9c3 195:63f65fb9f210
575 staticNode.appendChild(groupNode); 575 staticNode.appendChild(groupNode);
576 } 576 }
577 } else if (o instanceof SingleValueDescribeData) { 577 } else if (o instanceof SingleValueDescribeData) {
578 578
579 SingleValueDescribeData svdb = (SingleValueDescribeData) o; 579 SingleValueDescribeData svdb = (SingleValueDescribeData) o;
580
581 Element groupNode = xmlutilities.createXFormElement(
582 document, "group");
583 groupNode.setAttribute("ref", svdb.getName());
584 Element groupNodeLableNode = xmlutilities
585 .createXFormElement(document, "label");
586 groupNodeLableNode.setTextContent(RessourceFactory
587 .getInstance().getRessource(
588 callMeta.getLanguages(),
589 svdb.getName(),
590 svdb.getName()));
591 groupNode.appendChild(groupNodeLableNode);
580 592
581 Element inputNode = xmlutilities.createXFormElement( 593 Element inputNode = xmlutilities.createXFormElement(
582 document, "input"); 594 document, "input");
583 inputNode.setAttribute("ref", svdb.getName()); 595 inputNode.setAttribute("ref", svdb.getName());
584 596
585 Element inputLableNode = xmlutilities.createXFormElement( 597 Element inputLableNode = xmlutilities.createXFormElement(
586 document, "label"); 598 document, "label");
587 inputLableNode.setTextContent(RessourceFactory 599 inputLableNode.setTextContent("");
588 .getInstance().getRessource(
589 callMeta.getLanguages(), svdb.getName(),
590 svdb.getName()));
591 inputNode.appendChild(inputLableNode); 600 inputNode.appendChild(inputLableNode);
592 601
593 Element inputValueNode = xmlutilities.createXFormElement( 602 Element inputValueNode = xmlutilities.createXFormElement(
594 document, "value"); 603 document, "value");
595 inputValueNode.setTextContent(svdb.getValue()); 604 inputValueNode.setTextContent(svdb.getValue());
596 inputNode.appendChild(inputValueNode); 605 inputNode.appendChild(inputValueNode);
597 606
607 groupNode.appendChild(inputNode);
598 if (!it.hasNext()) { 608 if (!it.hasNext()) {
599 dynamic.appendChild(inputNode); 609 dynamic.appendChild(groupNode);
600 } else { 610 } else {
601 staticNode.appendChild(inputNode); 611 staticNode.appendChild(groupNode);
602 } 612 }
603 } 613 }
604 614
605 } 615 }
606 } 616 }

http://dive4elements.wald.intevation.org