diff options
author | Adam Wagner <wbadam@users.noreply.github.com> | 2017-03-24 11:28:58 +0200 |
---|---|---|
committer | Pekka Hyvönen <pekka@vaadin.com> | 2017-03-24 11:28:58 +0200 |
commit | e905e2bb8057d19128bc5bd052d73ee8f29687a8 (patch) | |
tree | 54b0d8a210bc6c4b9fcdb6a8f676e63495b3f55d /uitest | |
parent | ff3c31b8cb3ba65230edede8edcdef9aa613d178 (diff) | |
download | vaadin-framework-e905e2bb8057d19128bc5bd052d73ee8f29687a8.tar.gz vaadin-framework-e905e2bb8057d19128bc5bd052d73ee8f29687a8.zip |
Clean DropEvent and DragEndEvent properties (#8925)
* Add dropEffect parameter to DragEndEvent (#8895)
* Remove drop effect from drop event (#8895)
* Make sure that drop effect is not null
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/main/java/com/vaadin/tests/dnd/DragAndDropCardShuffle.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/dnd/DragAndDropCardShuffle.java b/uitest/src/main/java/com/vaadin/tests/dnd/DragAndDropCardShuffle.java index 745297cde8..415dbf945d 100644 --- a/uitest/src/main/java/com/vaadin/tests/dnd/DragAndDropCardShuffle.java +++ b/uitest/src/main/java/com/vaadin/tests/dnd/DragAndDropCardShuffle.java @@ -19,7 +19,6 @@ import com.vaadin.event.dnd.DragSourceExtension; import com.vaadin.event.dnd.DropTargetExtension; import com.vaadin.server.Page; import com.vaadin.server.VaadinRequest; -import com.vaadin.shared.ui.dnd.DropEffect; import com.vaadin.tests.components.AbstractTestUIWithLog; import com.vaadin.ui.HorizontalLayout; import com.vaadin.ui.Label; @@ -76,7 +75,8 @@ public class DragAndDropCardShuffle extends AbstractTestUIWithLog { dragSource.addDragEndListener(event -> { event.getComponent().removeStyleName("dragged"); - log(event.getComponent().getValue() + " dragend"); + log(event.getComponent().getValue() + " dragend, dropEffect=" + + event.getDropEffect()); }); } @@ -85,8 +85,6 @@ public class DragAndDropCardShuffle extends AbstractTestUIWithLog { DropTargetExtension<Label> dropTarget = new DropTargetExtension<>( target); - dropTarget.setDropEffect(DropEffect.MOVE); - // Add listener dropTarget.addDropListener(event -> { event.getDragSourceExtension().ifPresent(dragSource -> { |