Package com.tagtraum.beatunes.songtable
Class SongTableTransferHandler
- java.lang.Object
-
- javax.swing.TransferHandler
-
- com.tagtraum.beatunes.draganddrop.VisualTransferHandler
-
- com.tagtraum.beatunes.songtable.SongTableTransferHandler
-
- All Implemented Interfaces:
Serializable
public class SongTableTransferHandler extends VisualTransferHandler
TransferHandler
for theSongTable
.- Author:
- Hendrik Schreiber
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
-
-
Field Summary
-
Fields inherited from class com.tagtraum.beatunes.draganddrop.VisualTransferHandler
idsFlavor, indicesFlavor, plainTextFlavor, playlistFlavor, songsFlavor, stringDataFlavor, uriListFlavor, urlDataFlavor
-
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
-
-
Constructor Summary
Constructors Constructor Description SongTableTransferHandler(BeaTunes application)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canImport(TransferHandler.TransferSupport support)
protected Transferable
createTransferableImpl(JComponent c)
BeaTunes
getApplication()
int
getSourceActions(JComponent c)
boolean
importData(TransferHandler.TransferSupport support)
-
Methods inherited from class com.tagtraum.beatunes.draganddrop.VisualTransferHandler
createTransferable, exportDone, getDragImageRenderer, setDragImage, setDragImageRenderer, toPlainText, toPlainText, toPlainText, toURIList, toURIList, toURIList
-
Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, setDragImageOffset
-
-
-
-
Constructor Detail
-
SongTableTransferHandler
public SongTableTransferHandler(BeaTunes application)
- Parameters:
application
- beatunes
-
-
Method Detail
-
getApplication
public BeaTunes getApplication()
-
importData
public boolean importData(TransferHandler.TransferSupport support)
- Overrides:
importData
in classTransferHandler
-
getSourceActions
public int getSourceActions(JComponent c)
- Overrides:
getSourceActions
in classTransferHandler
-
createTransferableImpl
protected Transferable createTransferableImpl(JComponent c)
- Specified by:
createTransferableImpl
in classVisualTransferHandler
-
canImport
public boolean canImport(TransferHandler.TransferSupport support)
- Overrides:
canImport
in classTransferHandler
-
-