Package org.jjazz.uiutilities.api
Class MidiFileDragInTransferHandler
java.lang.Object
javax.swing.TransferHandler
org.jjazz.uiutilities.api.MidiFileDragInTransferHandler
- All Implemented Interfaces:
Serializable
Our drag'n drop support to accept external Midi files dragged into a component.
Note that behaviour is different on MacOS: getSourceActions(), createTransferable(), exportDone() can be called several times during a drag operation ! (only 1 for Win/Linux). Also on MacOS the support parameter is not always fully initialized on canImport(), is is fully initialized only when importData() is called (see MidiFileDragInTransferHandler.java for example).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
-
Field Summary
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canImport
(TransferHandler.TransferSupport support) boolean
Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getSourceActions, getVisualRepresentation, importData, setDragImage, setDragImageOffset
-
Field Details
-
DRAG_ICON
-
-
Constructor Details
-
MidiFileDragInTransferHandler
public MidiFileDragInTransferHandler()
-
-
Method Details
-
canImport
- Overrides:
canImport
in classTransferHandler
-
importData
- Overrides:
importData
in classTransferHandler
-