Class FileDrop.DropEvent

  • Enclosing class:
    FileDrop

    public static final class FileDrop.DropEvent
    extends java.lang.Object
    Event that is provided to listeners when files are dropped on a target.
    Since:
    3.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Point getDropLocation()
      Returns the location of the drop within the drop target.
      java.awt.Component getDropTarget()
      Returns the component that the files were dropped on.
      java.util.List<java.io.File> getFiles()
      Returns a list of the files that were dropped.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getFiles

        public java.util.List<java.io.File> getFiles()
        Returns a list of the files that were dropped.
        Returns:
        the dropped files
      • getDropTarget

        public java.awt.Component getDropTarget()
        Returns the component that the files were dropped on.
        Returns:
        the drop target
      • getDropLocation

        public java.awt.Point getDropLocation()
        Returns the location of the drop within the drop target.
        Returns:
        the drop location, in the target component's coordinate space