# HG changeset patch # User Felix Wolfsteller # Date 1317188230 0 # Node ID f76c90b3086fc6ee7bdd41fb98c6ecd8b6ef8495 # Parent 6ec804500621e010a98c844019f290583e39428d Make differences (rows of list) in wdiff-gui removable. flys-client/trunk@2847 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 6ec804500621 -r f76c90b3086f flys-client/ChangeLog --- 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 + + 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 Use HashSet to avoid duplicate clones in Collections with WDiffs. diff -r 6ec804500621 -r f76c90b3086f flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageTwinPanel.java --- 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);