From d0a8608c7e074d4baeef0282146b2da5c47603a5 Mon Sep 17 00:00:00 2001 From: Adam Wagner Date: Tue, 25 Apr 2017 14:05:37 +0300 Subject: Make it possible to set a Resource as drag image (#9088) Fixes #8892 Note that IE and Edge are not covered by this change - see #8977 --- shared/src/main/java/com/vaadin/shared/ui/dnd/DragSourceState.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shared/src/main/java') diff --git a/shared/src/main/java/com/vaadin/shared/ui/dnd/DragSourceState.java b/shared/src/main/java/com/vaadin/shared/ui/dnd/DragSourceState.java index 766c79e3eb..2ac5c4e438 100644 --- a/shared/src/main/java/com/vaadin/shared/ui/dnd/DragSourceState.java +++ b/shared/src/main/java/com/vaadin/shared/ui/dnd/DragSourceState.java @@ -40,6 +40,8 @@ public class DragSourceState extends SharedState { */ public static final String DATA_TYPE_TEXT = "text"; + public static final String RESOURCE_DRAG_IMAGE = "drag-image"; + /** * {@code DataTransfer.effectAllowed} parameter for the drag event. */ -- cgit v1.2.3