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

DragEvents always have transferMode set to MOVE

XMLWordPrintable

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

      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]

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

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

              Created:
              Updated:
              Resolved:
              Imported: