public class FileTransferHandler extends TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
Constructor and Description |
---|
FileTransferHandler(AttachmentTableModel attachmentModel)
Creates a new instance of FileTransferHandler
|
Modifier and Type | Method and Description |
---|---|
boolean |
canImport(JComponent c,
DataFlavor[] flavors) |
int |
getSourceActions(JComponent c) |
boolean |
importData(JComponent c,
Transferable t) |
canImport, createTransferable, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getVisualRepresentation, importData, setDragImage, setDragImageOffset
public FileTransferHandler(AttachmentTableModel attachmentModel)
public boolean canImport(JComponent c, DataFlavor[] flavors)
canImport
in class TransferHandler
public boolean importData(JComponent c, Transferable t)
importData
in class TransferHandler
public int getSourceActions(JComponent c)
getSourceActions
in class TransferHandler
Copyright © 2019. All Rights Reserved.