diff 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
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Tue May 10 10:03:00 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Tue May 10 10:57:57 2011 +0000
@@ -80,6 +80,7 @@
     protected VLayout oldItems;
     protected VLayout currentItems;
     protected Canvas  helperPanel;
+    protected Canvas  tablePanel;
 
     public ParameterList(FLYS flys, CollectionView cView, String title) {
         super(title);
@@ -127,6 +128,7 @@
 
     protected void init() {
         HLayout rootLayout = new HLayout();
+        tablePanel = new Canvas();
         rootLayout.setMembersMargin(20);
 
         VLayout left = new VLayout();
@@ -477,9 +479,22 @@
      * @param table The table data panel.
      */
     public void setPanel (TableDataPanel table) {
-        Canvas c = table.create();
-        c.setHeight(400);
-        topLayout.addMember(c);
+        tablePanel = table.create();
+        tablePanel.setHeight(400);
+        topLayout.addMember(tablePanel);
+    }
+
+
+    /**
+     * Removes the table from the parameter list.
+     */
+    public void removePanel() {
+        topLayout.removeMember(tablePanel);
+    }
+
+
+    public boolean hasPanel() {
+        return topLayout.hasMember(tablePanel);
     }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org