T - Type of the component that was dragged.public class DragEndEvent<T extends AbstractComponent> extends Component.Event
DragSourceExtension.addDragEndListener(DragEndListener),
Serialized Formsource| Constructor and Description |
|---|
DragEndEvent(T source,
DropEffect dropEffect)
Creates a drag end event.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getComponent()
Returns the drag source component where the dragend event occurred.
|
DropEffect |
getDropEffect()
Get drop effect of the dragend event.
|
boolean |
isCanceled()
Returns whether the drag event was cancelled.
|
getConnectorgetSource, toStringpublic DragEndEvent(T source, DropEffect dropEffect)
source - Component that was dragged.dropEffect - Drop effect from DataTransfer.dropEffect object.public DropEffect getDropEffect()
If the drop is not successful, the value will be NONE.
In case the desired drop effect is MOVE, the data being dragged
should be removed from the source.
DataTransfer.dropEffect parameter of the client side
dragend event.DragSourceExtension#setEffectAllowed(EffectAllowed),
DropTargetExtension.setDropEffect(DropEffect),
DropTargetExtension.setDropCriteriaScript(String)public boolean isCanceled()
dropEffect == NONE.true if the drop event was cancelled, false
otherwise.public T getComponent()
getComponent in class Component.EventCopyright © 2019 Vaadin Ltd. All rights reserved.