comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java @ 272:d3c053420c3b

ISSUE 44: Moved the location/range and WQ input tables to the helper panel and set the size to 100%. flys-client/trunk@1898 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 11 May 2011 11:07:18 +0000
parents f56523bf4c55
children be842e36ce1c
comparison
equal deleted inserted replaced
271:65735765643d 272:d3c053420c3b
446 446
447 inputTables = new TabSet(); 447 inputTables = new TabSet();
448 Tab locations = new Tab(MESSAGES.location()); 448 Tab locations = new Tab(MESSAGES.location());
449 Tab distances = new Tab(MESSAGES.distance()); 449 Tab distances = new Tab(MESSAGES.distance());
450 450
451 inputTables.setWidth(500); 451 inputTables.setWidth100();
452 inputTables.setHeight(350); 452 inputTables.setHeight100();
453 453
454 locations.setPane(locationsTable); 454 locations.setPane(locationsTable);
455 distances.setPane(distanceTable); 455 distances.setPane(distanceTable);
456 456
457 inputTables.addTab(locations); 457 inputTables.addTab(locations);
458 inputTables.addTab(distances); 458 inputTables.addTab(distances);
459 459
460 container.addMember(inputTables); 460 helperContainer.addChild(inputTables);
461 461
462 return layout; 462 return layout;
463 } 463 }
464 464
465 465
633 Tab t2 = new Tab (MESSAGES.distance()); 633 Tab t2 = new Tab (MESSAGES.distance());
634 t2.setPane(distanceTable); 634 t2.setPane(distanceTable);
635 inputTables.addTab(t2); 635 inputTables.addTab(t2);
636 updateDistanceInfo(tableData); 636 updateDistanceInfo(tableData);
637 637
638 container.addMember(inputTables); 638 helperContainer.addChild(inputTables);
639 inputTables.selectTab(0); 639 inputTables.selectTab(0);
640 } 640 }
641 else { 641 else {
642 distancePanel = new DoubleRangePanel( 642 distancePanel = new DoubleRangePanel(
643 MESSAGES.unitFrom(), MESSAGES.unitTo(), MESSAGES.unitWidth(), 643 MESSAGES.unitFrom(), MESSAGES.unitTo(), MESSAGES.unitWidth(),
660 inputTables.addTab(t2); 660 inputTables.addTab(t2);
661 if (tableData != null) { 661 if (tableData != null) {
662 updateDistanceInfo(tableData); 662 updateDistanceInfo(tableData);
663 } 663 }
664 664
665 container.addMember(inputTables); 665 helperContainer.addChild(inputTables);
666 inputTables.selectTab(1); 666 inputTables.selectTab(1);
667 } 667 }
668 } 668 }
669 669
670 670

http://dive4elements.wald.intevation.org