aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/event/dnd/DropEvent.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/DropEvent.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/DropEvent.java')
-rw-r--r--server/src/main/java/com/vaadin/event/dnd/DropEvent.java16
1 files changed, 1 insertions, 15 deletions
diff --git a/server/src/main/java/com/vaadin/event/dnd/DropEvent.java b/server/src/main/java/com/vaadin/event/dnd/DropEvent.java
index c2b4943d0f..932f5577a5 100644
--- a/server/src/main/java/com/vaadin/event/dnd/DropEvent.java
+++ b/server/src/main/java/com/vaadin/event/dnd/DropEvent.java
@@ -32,7 +32,6 @@ import com.vaadin.ui.Component;
*/
public class DropEvent<T extends AbstractComponent> extends Component.Event {
private final String dataTransferText;
- private final DropEffect dropEffect;
private final DragSourceExtension<? extends AbstractComponent> dragSourceExtension;
private final AbstractComponent dragSource;
@@ -44,20 +43,16 @@ public class DropEvent<T extends AbstractComponent> extends Component.Event {
* @param dataTransferText
* Data of type {@code "text"} from the {@code DataTransfer}
* object.
- * @param dropEffect
- * Drop effect from {@code DataTransfer.dropEffect} object.
* @param dragSourceExtension
* Drag source extension of the component that initiated the drop
* event.
*/
- public DropEvent(T target, String dataTransferText, DropEffect dropEffect,
+ public DropEvent(T target, String dataTransferText,
DragSourceExtension<? extends AbstractComponent> dragSourceExtension) {
super(target);
this.dataTransferText = dataTransferText;
- this.dropEffect = dropEffect;
-
this.dragSourceExtension = dragSourceExtension;
this.dragSource = Optional.ofNullable(dragSourceExtension)
.map(DragSourceExtension::getParent).orElse(null);
@@ -75,15 +70,6 @@ public class DropEvent<T extends AbstractComponent> extends Component.Event {
}
/**
- * Get drop effect set for the current drop target.
- *
- * @return {@code dropEffect} parameter set for the current drop target.
- */
- public DropEffect getDropEffect() {
- return dropEffect;
- }
-
- /**
* Returns the drag source component if the drag originated from a
* component in the same UI as the drop target component, or an empty
* optional.