comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java @ 260:dd1dad2ff94e

Remove the data table on step back. flys-client/trunk@1875 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 10 May 2011 10:57:57 +0000
parents 5e1c1b7d6516
children eb3c16df59db
comparison
equal deleted inserted replaced
259:50a95db68e66 260:dd1dad2ff94e
78 78
79 protected VLayout topLayout; 79 protected VLayout topLayout;
80 protected VLayout oldItems; 80 protected VLayout oldItems;
81 protected VLayout currentItems; 81 protected VLayout currentItems;
82 protected Canvas helperPanel; 82 protected Canvas helperPanel;
83 protected Canvas tablePanel;
83 84
84 public ParameterList(FLYS flys, CollectionView cView, String title) { 85 public ParameterList(FLYS flys, CollectionView cView, String title) {
85 super(title); 86 super(title);
86 87
87 this.cView = cView; 88 this.cView = cView;
125 } 126 }
126 127
127 128
128 protected void init() { 129 protected void init() {
129 HLayout rootLayout = new HLayout(); 130 HLayout rootLayout = new HLayout();
131 tablePanel = new Canvas();
130 rootLayout.setMembersMargin(20); 132 rootLayout.setMembersMargin(20);
131 133
132 VLayout left = new VLayout(); 134 VLayout left = new VLayout();
133 135
134 if (old == null || old.size() == 0) { 136 if (old == null || old.size() == 0) {
475 * Adds a table to the parameterlist to show calculated data. 477 * Adds a table to the parameterlist to show calculated data.
476 * 478 *
477 * @param table The table data panel. 479 * @param table The table data panel.
478 */ 480 */
479 public void setPanel (TableDataPanel table) { 481 public void setPanel (TableDataPanel table) {
480 Canvas c = table.create(); 482 tablePanel = table.create();
481 c.setHeight(400); 483 tablePanel.setHeight(400);
482 topLayout.addMember(c); 484 topLayout.addMember(tablePanel);
485 }
486
487
488 /**
489 * Removes the table from the parameter list.
490 */
491 public void removePanel() {
492 topLayout.removeMember(tablePanel);
493 }
494
495
496 public boolean hasPanel() {
497 return topLayout.hasMember(tablePanel);
483 } 498 }
484 } 499 }
485 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 500 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org