- java.lang.Object
-
- java.util.EventObject
-
- com.iamsoft.util.ui.swing.FileDrop.Event
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- FileDrop
public static class FileDrop.Event extends EventObject
This is the event that is passed to the FileDropListener#filesDropped filesDropped(...) method in yourFileDropListener
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 inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description Event(File[] pFiles, Object pSource)
Constructs anFileDrop.Event
with the array of files that were dropped and theFileDrop
that initiated the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description File[]
getFiles()
Returns an array of files that were dropped on a registered drop target.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
Event
public Event(File[] pFiles, Object pSource)
Constructs anFileDrop.Event
with the array of files that were dropped and theFileDrop
that initiated the event.- Parameters:
pFiles
- The array of files that were droppedpSource
- 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
-
-