Changeset 6221 in josm for trunk/src/org/openstreetmap/josm/gui/FileDrop.java
- Timestamp:
- 2013-09-07T17:52:27+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/FileDrop.java
r6104 r6221 24 24 import java.util.ArrayList; 25 25 import java.util.Arrays; 26 import java.util.EventObject;27 26 import java.util.List; 28 27 import java.util.TooManyListenersException; … … 474 473 475 474 /** 476 * This is the event that is passed to the477 * {@link FileDrop.Listener#filesDropped filesDropped(...)} method in478 * your {@link FileDrop.Listener} when files are dropped onto479 * a registered drop target.480 *481 * <p>I'm releasing this code into the Public Domain. Enjoy.</p>482 *483 * @author Robert Harder484 * @author rob@iharder.net485 * @version 1.2486 */487 public static class Event extends EventObject {488 489 private File[] files;490 491 /**492 * Constructs an {@link Event} with the array493 * of files that were dropped and the494 * {@link FileDrop} that initiated the event.495 *496 * @param files The array of files that were dropped497 * @param source The event source498 */499 public Event( File[] files, Object source ) {500 super( source );501 this.files = files;502 } // end constructor503 504 /**505 * Returns an array of files that were dropped on a506 * registered drop target.507 *508 * @return array of files that were dropped509 */510 public File[] getFiles() {511 return files;512 } // end getFiles513 514 } // end inner class Event515 516 /* ******** I N N E R C L A S S ******** */517 518 /**519 475 * At last an easy way to encapsulate your custom objects for dragging and dropping 520 476 * in your Java programs!
Note:
See TracChangeset
for help on using the changeset viewer.