Changeset 6830 in josm for trunk/src/org/openstreetmap/josm/gui/FileDrop.java
- Timestamp:
- 2014-02-10T00:51:53+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/FileDrop.java
r6798 r6830 39 39 * dropped onto, but only {@link javax.swing.JComponent}s will indicate 40 40 * the drop event with a changed border. 41 * <p />41 * <p> 42 42 * To use this class, construct a new <tt>FileDrop</tt> by passing 43 43 * it the target component and a <tt>Listener</tt> to receive notification 44 44 * when file(s) have been dropped. Here is an example: 45 * <p />46 * <code> <pre>45 * <p> 46 * <code> 47 47 * JPanel myPanel = new JPanel(); 48 48 * new FileDrop( myPanel, new FileDrop.Listener() … … 53 53 * } // end filesDropped 54 54 * }); // end FileDrop.Listener 55 * </ pre></code>56 * <p />55 * </code> 56 * <p> 57 57 * You can specify the border that will appear when files are being dragged by 58 58 * calling the constructor with a {@link javax.swing.border.Border}. Only 59 59 * <tt>JComponent</tt>s will show any indication with a border. 60 * <p />60 * <p> 61 61 * You can turn on some debugging features by passing a <tt>PrintStream</tt> 62 62 * object (such as <tt>System.out</tt>) into the full constructor. A <tt>null</tt> 63 63 * value will result in no extra debugging information being output. 64 * <p />64 * <p> 65 65 * 66 66 * <p>I'm releasing this code into the Public Domain. Enjoy. … … 449 449 * Implement this inner interface to listen for when files are dropped. For example 450 450 * your class declaration may begin like this: 451 * <code> <pre>451 * <code> 452 452 * public class MyClass implements FileDrop.Listener 453 453 * ... … … 457 457 * } // end filesDropped 458 458 * ... 459 * </ pre></code>459 * </code> 460 460 */ 461 461 public static interface Listener {
Note:
See TracChangeset
for help on using the changeset viewer.
