Class FileDrop.Event

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    FileDrop

    public static class FileDrop.Event
    extends java.util.EventObject
    This is the event that is passed to the filesDropped(...) method in your FileDropListener when files are dropped onto a registered drop target.

    I'm releasing this code into the Public Domain. Enjoy.

    Version:
    1.2
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File[] files  
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      Event​(java.io.File[] files, java.lang.Object source)
      Constructs an FileDrop.Event with the array of files that were dropped and the FileDrop that initiated the event.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.File[] getFiles()
      Returns an array of files that were dropped on a registered drop target.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • files

        private java.io.File[] files
    • Constructor Detail

      • Event

        public Event​(java.io.File[] files,
                     java.lang.Object source)
        Constructs an FileDrop.Event with the array of files that were dropped and the FileDrop that initiated the event.
        Parameters:
        files - The array of files that were dropped
        Since:
        1.1
    • Method Detail

      • getFiles

        public java.io.File[] getFiles()
        Returns an array of files that were dropped on a registered drop target.
        Returns:
        array of files that were dropped
        Since:
        1.1