From 69b43cb346b504d713e458b987e65f4db1b825df Mon Sep 17 00:00:00 2001 From: Pekka Hyvönen Date: Mon, 20 Mar 2017 16:04:56 +0200 Subject: Initial documentation for 8.1 Drag and Drop (#8867) * Initial documentation for 8.1 Drag and Drop Part of #8395 --- .../tests/event/dnd/DragAndDropBookExamples.java | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 server/src/test/java/com/vaadin/tests/event/dnd/DragAndDropBookExamples.java (limited to 'server') diff --git a/server/src/test/java/com/vaadin/tests/event/dnd/DragAndDropBookExamples.java b/server/src/test/java/com/vaadin/tests/event/dnd/DragAndDropBookExamples.java new file mode 100644 index 0000000000..0c88ff717e --- /dev/null +++ b/server/src/test/java/com/vaadin/tests/event/dnd/DragAndDropBookExamples.java @@ -0,0 +1,61 @@ +package com.vaadin.tests.event.dnd; + +import java.util.Optional; + +import com.vaadin.event.dnd.DragSourceExtension; +import com.vaadin.event.dnd.DropTargetExtension; +import com.vaadin.shared.ui.dnd.DropEffect; +import com.vaadin.shared.ui.dnd.EffectAllowed; +import com.vaadin.ui.AbstractComponent; +import com.vaadin.ui.Label; +import com.vaadin.ui.Notification; +import com.vaadin.ui.VerticalLayout; +import com.vaadin.ui.themes.ValoTheme; + +public class DragAndDropBookExamples { + + public void dragSourceExtensionSamples() { + Label draggableLabel = new Label("You can grab and drag me"); + DragSourceExtension