Package gov.nih.mipav.view.dialogs
Class JDialogSwapSlicesVolumes.TableTransferImporter
java.lang.Object
javax.swing.TransferHandler
gov.nih.mipav.view.dialogs.JDialogSwapSlicesVolumes.TableTransferImporter
- All Implemented Interfaces:
ClipboardOwner,Serializable
- Enclosing class:
JDialogSwapSlicesVolumes
private class JDialogSwapSlicesVolumes.TableTransferImporter
extends TransferHandler
implements ClipboardOwner
Imports by cut/copy/paste/drag/drop slice elements from part of parent JTable
to another part of the JTable.
- Author:
- senseneyj
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classDescribes how the TransferHandler should handle slice transfers.Nested classes/interfaces inherited from class javax.swing.TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport -
Field Summary
FieldsFields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanImport(JComponent comp, DataFlavor[] transferFlavors) protected TransferablevoidexportToClipboard(JComponent comp, Clipboard clip, int action) booleanimportData(JComponent comp, Transferable t) voidlostOwnership(Clipboard clipboard, Transferable contents) Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, exportDone, getCopyAction, getCutAction, getDragImage, getDragImageOffset, getPasteAction, getSourceActions, getVisualRepresentation, importData, setDragImage, setDragImageOffset
-
Field Details
-
parent
-
-
Constructor Details
-
TableTransferImporter
-
-
Method Details
-
canImport
- Overrides:
canImportin classTransferHandler
-
createTransferable
- Overrides:
createTransferablein classTransferHandler
-
exportToClipboard
public void exportToClipboard(JComponent comp, Clipboard clip, int action) throws IllegalStateException - Overrides:
exportToClipboardin classTransferHandler- Throws:
IllegalStateException
-
importData
- Overrides:
importDatain classTransferHandler
-
lostOwnership
- Specified by:
lostOwnershipin interfaceClipboardOwner
-