Package jmri.util.iharder.dnd
package jmri.util.iharder.dnd
-
ClassDescriptionDnDList<E>An extension of
JListthat supports drag and drop to rearrange its contents and to move objects in and out of the list.At last an easy way to encapsulate your custom objects for dragging and dropping in your Java programs!Instead of passing your data directly to theTransferableObjectconstructor, you may want to know exactly when your data was received in case you need to remove it from its source (or do anyting else to it).This class makes it easy to drag and drop files from the operating system to a Java program.Implement this inner interface to listen for when uris are dropped.This is the event that is passed to theURIsDropped(...)method in yourURIDropListenerwhen URIs are dropped onto a registered drop target.When using the FileDrop package in its JavaBean form, this listener will receive events when files are dropped onto registered targets.