aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/event/dnd/DragEndEvent.java
diff options
context:
space:
mode:
authorAdam Wagner <wbadam@users.noreply.github.com>2017-03-24 11:28:58 +0200
committerPekka Hyvönen <pekka@vaadin.com>2017-03-24 11:28:58 +0200
commite905e2bb8057d19128bc5bd052d73ee8f29687a8 (patch)
tree54b0d8a210bc6c4b9fcdb6a8f676e63495b3f55d /server/src/main/java/com/vaadin/event/dnd/DragEndEvent.java
parentff3c31b8cb3ba65230edede8edcdef9aa613d178 (diff)
downloadvaadin-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 'server/src/main/java/com/vaadin/event/dnd/DragEndEvent.java')
-rw-r--r--server/src/main/java/com/vaadin/event/dnd/DragEndEvent.java21
1 files changed, 11 insertions, 10 deletions
diff --git a/server/src/main/java/com/vaadin/event/dnd/DragEndEvent.java b/server/src/main/java/com/vaadin/event/dnd/DragEndEvent.java
index f1176e1880..57f111e848 100644
--- a/server/src/main/java/com/vaadin/event/dnd/DragEndEvent.java
+++ b/server/src/main/java/com/vaadin/event/dnd/DragEndEvent.java
@@ -15,7 +15,7 @@
*/
package com.vaadin.event.dnd;
-import com.vaadin.shared.ui.dnd.EffectAllowed;
+import com.vaadin.shared.ui.dnd.DropEffect;
import com.vaadin.ui.AbstractComponent;
import com.vaadin.ui.Component;
@@ -30,7 +30,7 @@ import com.vaadin.ui.Component;
*/
public class DragEndEvent<T extends AbstractComponent> extends Component.Event {
private final String dataTransferText;
- private final EffectAllowed effectAllowed;
+ private final DropEffect dropEffect;
/**
* Creates a server side dragend event.
@@ -40,16 +40,16 @@ public class DragEndEvent<T extends AbstractComponent> extends Component.Event {
* @param dataTransferText
* Data of type {@code "text"} from the {@code DataTransfer}
* object.
- * @param effectAllowed
- * Allowed effects from {@code DataTransfer.effectAllowed} object.
+ * @param dropEffect
+ * Drop effect from {@code DataTransfer.dropEffect} object.
*/
public DragEndEvent(T source, String dataTransferText,
- EffectAllowed effectAllowed) {
+ DropEffect dropEffect) {
super(source);
this.dataTransferText = dataTransferText;
- this.effectAllowed = effectAllowed;
+ this.dropEffect = dropEffect;
}
/**
@@ -64,12 +64,13 @@ public class DragEndEvent<T extends AbstractComponent> extends Component.Event {
}
/**
- * Returns the {@code effectAllowed} parameter of this event.
+ * Get drop effect of the dragend event.
*
- * @return This event's {@code effectAllowed} parameter.
+ * @return The {@code DataTransfer.dropEffect} parameter of the client side
+ * dragend event.
*/
- public EffectAllowed getEffectAllowed() {
- return effectAllowed;
+ public DropEffect getDropEffect() {
+ return dropEffect;
}
/**