changeset 40:1458bc0a20e2

Clear the panel that displays the current input widget before adding a new item to this panel. flys-client/trunk@1474 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 15 Mar 2011 14:55:47 +0000
parents 4187a797fc3d
children 87a44f8e25cc
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Mar 15 14:35:41 2011 +0000
+++ b/flys-client/ChangeLog	Tue Mar 15 14:55:47 2011 +0000
@@ -1,3 +1,9 @@
+2011-03-15  Ingo Weinzierl <ingo@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/ParameterList.java:
+	  Clear the panel that displays the current input widget before adding a
+	  new one to this panel.
+
 2011-03-15  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/FLYSMessages_en.properties,
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Tue Mar 15 14:35:41 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java	Tue Mar 15 14:55:47 2011 +0000
@@ -129,6 +129,7 @@
      * The UI is created using the UIProvider stored in the Data object.
      */
     public void refreshCurrent() {
+        currentItems.removeMembers(currentItems.getMembers());
         currentItems.addMember(uiProvider.create(current));
     }
 }

http://dive4elements.wald.intevation.org