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

DragEvents always have transferMode set to MOVE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • fx2.0
    • fx1.3, fx2.0
    • javafx

    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
          Rakesh Menon
        2. DropTarget.fx
          2 kB
          Rakesh Menon
        3. TextListDnD.fx
          1 kB
          Rakesh Menon

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported: