comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java @ 1454:9152cfb3a54c

Bugfix: split up the Ws and Qs in the WQInputPanel properly. flys-client/trunk@3484 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 20 Dec 2011 09:03:14 +0000
parents bc06a671ef60
children 149f70bcbb96
comparison
equal deleted inserted replaced
1453:e8aec81af22b 1454:9152cfb3a54c
517 return v; 517 return v;
518 } 518 }
519 519
520 520
521 protected VLayout createWString(DataItem single) { 521 protected VLayout createWString(DataItem single) {
522 String label = single.getLabel(); 522 String label = single.getLabel().trim();
523 String[] cols = null; 523 String[] cols = label.split(" ");
524
525 if (label.indexOf(",") > 0) {
526 cols = label.split(",");
527 }
528 else {
529 cols = label.split(" ");
530 }
531 524
532 VLayout v = new VLayout(); 525 VLayout v = new VLayout();
533 526
534 for (String col: cols) { 527 for (String col: cols) {
535 Label l = new Label(col + " " + MESSAGE.unitWSingle()); 528 Label l = new Label(col + " " + MESSAGE.unitWSingle());
558 return v; 551 return v;
559 } 552 }
560 553
561 554
562 protected VLayout createQString(DataItem single) { 555 protected VLayout createQString(DataItem single) {
563 String label = single.getLabel(); 556 String label = single.getLabel().trim();
564 String[] cols = null; 557 String[] cols = label.split(" ");
565
566 if (label.indexOf(",") > 0) {
567 cols = label.split(",");
568 }
569 else {
570 cols = label.split(" ");
571 }
572 558
573 VLayout v = new VLayout(); 559 VLayout v = new VLayout();
574 560
575 for (String col: cols) { 561 for (String col: cols) {
576 Label l = new Label(col + " " + MESSAGE.unitQSingle()); 562 Label l = new Label(col + " " + MESSAGE.unitQSingle());

http://dive4elements.wald.intevation.org