From d4b4c661ba2d7f1f2f8f151b6c0fa8dccb2736b9 Mon Sep 17 00:00:00 2001 From: Nicolas Gonzalez Paz Date: Fri, 16 Oct 2020 14:43:00 -0300 Subject: [PATCH] Fix: calling the right demo classes With select row on click --- .../flowingcode/vaadin/addons/twincolgrid/DragAndDropDemo.java | 2 +- .../flowingcode/vaadin/addons/twincolgrid/TwincolDemoView.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/DragAndDropDemo.java b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/DragAndDropDemo.java index a8ded3b..6617181 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/DragAndDropDemo.java +++ b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/DragAndDropDemo.java @@ -31,7 +31,7 @@ public DragAndDropDemo() { .addSortableColumn(Book::getIsbn, Comparator.comparing(Book::getIsbn), "ISBN") .addSortableColumn(Book::getTitle, Comparator.comparing(Book::getTitle), "Title") .withLeftColumnCaption("Available books").withRightColumnCaption("Added books") - .withoutAddAllButton().withSizeFull().withDragAndDropSupport(); + .withoutAddAllButton().withSizeFull().withDragAndDropSupport().selectRowOnClick(); twinColGrid.setValue(selectedBooks); final Label countLabel = new Label("Selected items in left grid: 0"); diff --git a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwincolDemoView.java b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwincolDemoView.java index 103c204..e1e4f28 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwincolDemoView.java +++ b/src/test/java/com/flowingcode/vaadin/addons/twincolgrid/TwincolDemoView.java @@ -97,7 +97,7 @@ public TwincolDemoView() { break; case DRAGNDROP_DEMO: iframe.getElement().setAttribute("srcdoc", getSrcdoc(DRAGNDROP_DEMO)); - layout.addToPrimary(new FilterableDemo()); + layout.addToPrimary(new DragAndDropDemo()); layout.addToSecondary(iframe); add(tabs, layout, footer); break;