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

DropTargetDragEvent.getTransferable() is missing!

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.3.0
    • client-libs
    • x86
    • windows_nt



      Name: skT45625 Date: 07/28/2000


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

      I've written a JTree that supports drag&drop. I implemented the
      DropTargetListener.dragOver(DropTargetDragEvent) that it selects the current
      node that the dragging node moves over. Now, I want to check if this
      current/selected node is a valid drop target (node). For this reason, I need to
      get the current transferable to check wether source and target nodes
      are "compatible". For this reason I did a DropTargetDragEvent.getTransferable()
      (just like DropTargetDropEvent.getTransferable()) but this method is not
      available in DropTargetDragEvent! Playing with different DataFlavors is not
      enough, there are objects of the same flavour but with different properties.
      And the dropping sequence is dependend on this properties, so I need to have
      the transferable to check for additional values.

      Can we expect to have DropTargetDragEvent.getTransferable() in the next SDK or
      is there another solution for this problem?
      (Review ID: 107698)
      ======================================================================

            dmendenhsunw David Mendenhall (Inactive)
            skondamasunw Suresh Kondamareddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: