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

unclear spec for methods java.awt.dnd.DragSourceContext.drag*,drop*

XMLWordPrintable

    • 1.2.2
    • sparc
    • solaris_2.5



      Name: sdC67446 Date: 05/26/98


      spec for methods:
      dragDropEnd(DragSourceDropEvent dsde),
      dragEnter(DragSourceDragEvent dsde),
      dragExit(DragSourceEvent dsde),
      dragOver(DragSourceDragEvent dsde),
      dropActionChanged(DragSourceDragEvent dsde)
      is unclear about behavior if input parameter==null.
      Currently all methods throw NullPointerException except
      dragDropEnd(DragSourceDropEvent).
      More convenient behavior here is to throw NullPointerException
      for null parameters for all these methods or else it should be
      figured in spec.

      Here is what doc says:
      -------------------------------------------------
      public void dragEnter(DragSourceDragEvent dsde)
            intercept the dragEnter event from the peer
            Specified by:
                  dragEnter in interface DragSourceListener

      public void dragOver(DragSourceDragEvent dsde)
            intercept the dragOver event from the peer
            Specified by:
                  dragOver in interface DragSourceListener

      public void dragExit(DragSourceEvent dse)
            intercept the dragExit event from the peer
            Specified by:
                  dragExit in interface DragSourceListener

      public void dropActionChanged(DragSourceDragEvent dsde)
            intercept the dragGestureChanged event from the peer
            Specified by:
                  dropActionChanged in interface DragSourceListener

      public void dragDropEnd(DragSourceDropEvent dsde)
            intercept the dragDropEnd event from the peer
            Specified by:
                  dragDropEnd in interface DragSourceListener
      --------------------------------------------------
      ======================================================================

            shommel Scott Hommel (Inactive)
            sdmitriesunw Sergei Dmitriev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: