Interface DragSourceListener

    • Method Detail

      • dragStart

        void dragStart​(DragSourceEvent event)
        The user has begun the actions required to drag the widget. This event gives the application the chance to decide if a drag should be started.

        The following fields in the DragSourceEvent apply:

        • (in)widget
        • (in)time
        • (in,out)doit
        Parameters:
        event - the information associated with the drag start event
        See Also:
        DragSourceEvent
      • dragSetData

        void dragSetData​(DragSourceEvent event)
        The data is required from the drag source.

        The following fields in the DragSourceEvent apply:

        • (in)widget
        • (in)time
        • (in)dataType - the type of data requested.
        • (out)data - the application inserts the actual data here (must match the dataType)
        • (out)doit - set this to cancel the drag
        Parameters:
        event - the information associated with the drag set data event
        See Also:
        DragSourceEvent
      • dragFinished

        void dragFinished​(DragSourceEvent event)
        The drop has successfully completed(mouse up over a valid target) or has been terminated (such as hitting the ESC key). Perform cleanup such as removing data from the source side on a successful move operation.

        The following fields in the DragSourceEvent apply:

        • (in)widget
        • (in)time
        • (in)doit
        • (in)detail
        Parameters:
        event - the information associated with the drag finished event
        See Also:
        DragSourceEvent