changeset 1274:f76c90b3086f

Make differences (rows of list) in wdiff-gui removable. flys-client/trunk@2847 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Wed, 28 Sep 2011 05:37:10 +0000
parents 6ec804500621
children ca2d5bcf67a3
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageTwinPanel.java
diffstat 2 files changed, 19 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Sep 27 13:52:18 2011 +0000
+++ b/flys-client/ChangeLog	Wed Sep 28 05:37:10 2011 +0000
@@ -1,3 +1,10 @@
+2011-09-28	Felix Wolfsteller	<felix.wolfsteller@intevation.de> 
+
+	Make rows of in list with differences (WDiff) removable.
+
+	* src/main/java/de/intevation/flys/client/client/ui/DatacageTwinPanel.java:
+	  Make rows of in list with differences (WDiff) removable.
+
 2011-09-27	Felix Wolfsteller	<felix.wolfsteller@intevation.de> 
 
 	Use HashSet to avoid duplicate clones in Collections with WDiffs.
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageTwinPanel.java	Tue Sep 27 13:52:18 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageTwinPanel.java	Wed Sep 28 05:37:10 2011 +0000
@@ -108,19 +108,22 @@
     }
 
 
+    /**
+     * Creates layout with grid that displays selection inside.
+     */
     public Canvas createWidget() {
-        VLayout layout = new VLayout();
+        VLayout layout  = new VLayout();
+        differencesList = new ListGrid();
 
-        differencesList = new ListGrid();  
-        differencesList.setHeight(150);  
-        differencesList.setShowAllRecords(true);  
-        differencesList.setCanEdit(false);  
+        differencesList.setHeight(150);
+        differencesList.setShowAllRecords(true);
+        differencesList.setCanEdit(false);
+        differencesList.setCanRemoveRecords(true);
 
-        ListGridField nameField    = new ListGridField("first", "Minuend");  
-        ListGridField capitalField = new ListGridField("second", "Subtrahend");  
-        ListGridField removeField  = new ListGridField("remove", "Remove");  
+        ListGridField nameField    = new ListGridField("first",  "Minuend");
+        ListGridField capitalField = new ListGridField("second", "Subtrahend");
         differencesList.setFields(new ListGridField[] {nameField,
-           capitalField, removeField});
+           capitalField});
 
         layout.addMember(differencesList);
 

http://dive4elements.wald.intevation.org