apps.mtdesktop.desktop
Class FileDragAndDropHandler
java.lang.Object
javax.swing.TransferHandler
apps.mtdesktop.desktop.FileDragAndDropHandler
- All Implemented Interfaces:
- java.io.Serializable
public class FileDragAndDropHandler
- extends javax.swing.TransferHandler
The Class FileDragAndDropHandler.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class javax.swing.TransferHandler |
javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport |
Fields inherited from class javax.swing.TransferHandler |
COPY, COPY_OR_MOVE, LINK, MOVE, NONE |
Method Summary |
boolean |
canImport(javax.swing.JComponent comp,
java.awt.datatransfer.DataFlavor[] transferFlavors)
|
boolean |
importData(javax.swing.JComponent comp,
java.awt.datatransfer.Transferable t)
|
Methods inherited from class javax.swing.TransferHandler |
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getSourceActions, getVisualRepresentation, importData |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileDragAndDropHandler
public FileDragAndDropHandler()
canImport
public boolean canImport(javax.swing.JComponent comp,
java.awt.datatransfer.DataFlavor[] transferFlavors)
- Overrides:
canImport
in class javax.swing.TransferHandler
importData
public boolean importData(javax.swing.JComponent comp,
java.awt.datatransfer.Transferable t)
- Overrides:
importData
in class javax.swing.TransferHandler