Class DragEndEvent<T extends AbstractComponent>

    • Constructor Detail

      • DragEndEvent

        public DragEndEvent​(T source,
                            DropEffect dropEffect)
        Creates a drag end event.
        Parameters:
        source - Component that was dragged.
        dropEffect - Drop effect from DataTransfer.dropEffect object.
    • Method Detail

      • isCanceled

        public boolean isCanceled()
        Returns whether the drag event was cancelled. This is a shorthand for dropEffect == NONE.
        Returns:
        true if the drop event was cancelled, false otherwise.
      • getComponent

        public T getComponent()
        Returns the drag source component where the dragend event occurred.
        Overrides:
        getComponent in class Component.Event
        Returns:
        Component which was dragged.