Package ca.phon.app.project
Class ProjectDataTransferHandler
java.lang.Object
javax.swing.TransferHandler
ca.phon.ui.dnd.FileTransferHandler
ca.phon.app.project.ProjectDataTransferHandler
- All Implemented Interfaces:
Serializable
- 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
(JComponent comp, DataFlavor[] transferFlavors) boolean
boolean
importFile
(TransferHandler.TransferSupport support, File file) boolean
importFileList
(TransferHandler.TransferSupport support, Transferable transferable) boolean
importProjectPath
(TransferHandler.TransferSupport support, ProjectPath projectPath) boolean
importProjectPathList
(TransferHandler.TransferSupport support, List<ProjectPath> projectPathList) Methods inherited from class ca.phon.ui.dnd.FileTransferHandler
getFile, getFiles
Methods inherited from class javax.swing.TransferHandler
canImport, createTransferable, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getSourceActions, getVisualRepresentation, importData, setDragImage, setDragImageOffset
-
Constructor Details
-
ProjectDataTransferHandler
-
-
Method Details
-
getWindow
-
canImport
- Overrides:
canImport
in classFileTransferHandler
-
importData
- Overrides:
importData
in classTransferHandler
-
importProjectPathList
public boolean importProjectPathList(TransferHandler.TransferSupport support, List<ProjectPath> projectPathList) -
importProjectPath
-
importFileList
-
importFile
- Throws:
IOException
-