Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8108892

DragEvents always have transferMode set to MOVE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: fx1.3, fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Labels:

      Description

      TransferMode.COPY is used for startDrag. All events in Target like onDragEnter, onDragged, onDragDrop has TransferMode set to MOVE.
      TransferMode of onDragSourceCompleted in source set to NONE.

      Compile attached DragSource.fx, DropTarget.fx, TextListDnD.fx and run dragndrop.TextListDnD

      onDragSourceRecognized: SRC: DragEvent[accepted=false, source=TextBox, transferMode=MOVE, hasAnyContent=false]
      TRANSFER_MODE: COPY
      STRING_DRAG_CONTENT: [TextBox DnD Drag Source]
      onDragEnter: TGT: DragEvent[accepted=false, source=TextBox, transferMode=MOVE, hasAnyContent=true]
      onDragged: TGT: DragEvent[accepted=true, source=TextBox, transferMode=MOVE, hasAnyContent=true]
      onDragDrop: TGT: DragEvent[accepted=false, source=TextBox, transferMode=MOVE, hasAnyContent=true]
      DROP_CONTENT: [TextBox DnD Drag Source]
      onDragSourceCompleted: SRC: DragEvent[accepted=false, source=TextBox, transferMode=NONE, hasAnyContent=true]

        Attachments

        1. DragSource.fx
          4 kB
        2. DropTarget.fx
          2 kB
        3. TextListDnD.fx
          1 kB

          Activity

            People

            • Assignee:
              psafrata Pavel Ĺ afrata
              Reporter:
              rmenonsunw Rakesh Menon (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: