aboutsummaryrefslogtreecommitdiffstats
path: root/shared/src/main
diff options
context:
space:
mode:
authorAdam Wagner <wbadam@users.noreply.github.com>2017-04-25 14:05:37 +0300
committerHenri Sara <henri.sara@gmail.com>2017-04-25 14:05:37 +0300
commitd0a8608c7e074d4baeef0282146b2da5c47603a5 (patch)
treed8188d37aba955a8d7c1272d48b324515a567ba2 /shared/src/main
parentbb46fff4376095fb52443973577767026807a7ea (diff)
downloadvaadin-framework-d0a8608c7e074d4baeef0282146b2da5c47603a5.tar.gz
vaadin-framework-d0a8608c7e074d4baeef0282146b2da5c47603a5.zip
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
Diffstat (limited to 'shared/src/main')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/dnd/DragSourceState.java2
1 files changed, 2 insertions, 0 deletions
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.
*/