jmri.util.iharder.dnd
Class FileDropEvent

java.lang.Object
  extended by java.util.EventObject
      extended by jmri.util.iharder.dnd.FileDropEvent
All Implemented Interfaces:
Serializable

public class FileDropEvent
extends 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.

Original author: Robert Harder, rharder@usa.net

Author:
Robert Harder, rharder@usa.net
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
FileDropEvent(File[] files, Object source)
          Constructs a FileDropEvent with the array of files that were dropped and the object that initiated the event.
 
Method Summary
 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
 

Constructor Detail

FileDropEvent

public FileDropEvent(File[] files,
                     Object source)
Constructs a FileDropEvent with the array of files that were dropped and the object that initiated the event.

Parameters:
files - The array of files that were dropped
source - The event source
Since:
1.1
Method Detail

getFiles

public 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


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads