Class VisualTransferHandler
- java.lang.Object
-
- javax.swing.TransferHandler
-
- com.tagtraum.beatunes.draganddrop.VisualTransferHandler
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PlayerTransferHandler
,PlayListTreeTransferHandler
,SimpleCopyTransferHandler
,SongTableTransferHandler
public abstract class VisualTransferHandler extends TransferHandler
VisualTransferHandler
.- 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 Modifier and Type Field Description static DataFlavor
idsFlavor
static DataFlavor
indicesFlavor
static DataFlavor
plainTextFlavor
static DataFlavor
playlistFlavor
static DataFlavor
songsFlavor
static DataFlavor
stringDataFlavor
static DataFlavor
uriListFlavor
static DataFlavor
urlDataFlavor
-
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
-
-
Constructor Summary
Constructors Constructor Description VisualTransferHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Transferable
createTransferable(JComponent c)
protected abstract Transferable
createTransferableImpl(JComponent c)
void
exportDone(JComponent source, Transferable data, int action)
DragImageRenderer
getDragImageRenderer()
void
setDragImage(Image image)
void
setDragImageRenderer(DragImageRenderer dragImageRenderer)
protected String
toPlainText(File... files)
protected String
toPlainText(URL... urls)
protected String
toPlainText(Path... files)
protected String
toURIList(File... files)
protected String
toURIList(URL... urls)
protected String
toURIList(Path... files)
-
Methods inherited from class javax.swing.TransferHandler
canImport, canImport, exportAsDrag, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getSourceActions, getVisualRepresentation, importData, importData, setDragImageOffset
-
-
-
-
Field Detail
-
songsFlavor
public static DataFlavor songsFlavor
-
playlistFlavor
public static DataFlavor playlistFlavor
-
indicesFlavor
public static DataFlavor indicesFlavor
-
idsFlavor
public static DataFlavor idsFlavor
-
uriListFlavor
public static DataFlavor uriListFlavor
-
plainTextFlavor
public static DataFlavor plainTextFlavor
-
urlDataFlavor
public static DataFlavor urlDataFlavor
-
stringDataFlavor
public static DataFlavor stringDataFlavor
-
-
Method Detail
-
getDragImageRenderer
public DragImageRenderer getDragImageRenderer()
-
setDragImageRenderer
public void setDragImageRenderer(DragImageRenderer dragImageRenderer)
-
setDragImage
public void setDragImage(Image image)
- Overrides:
setDragImage
in classTransferHandler
-
createTransferable
public final Transferable createTransferable(JComponent c)
- Overrides:
createTransferable
in classTransferHandler
-
createTransferableImpl
protected abstract Transferable createTransferableImpl(JComponent c)
-
exportDone
public void exportDone(JComponent source, Transferable data, int action)
- Overrides:
exportDone
in classTransferHandler
-
-