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:
java.awt.datatransfer.ClipboardOwner
,java.io.Serializable
- Enclosing class:
- JDialogSwapSlicesVolumes
private class JDialogSwapSlicesVolumes.TableTransferImporter extends javax.swing.TransferHandler implements java.awt.datatransfer.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 Classes Modifier and Type Class Description private class
JDialogSwapSlicesVolumes.TableTransferImporter.SliceTransferable
Describes how the TransferHandler should handle slice transfers.
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JTable
parent
-
Constructor Summary
Constructors Constructor Description TableTransferImporter(javax.swing.JTable parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canImport(javax.swing.JComponent comp, java.awt.datatransfer.DataFlavor[] transferFlavors)
protected java.awt.datatransfer.Transferable
createTransferable(javax.swing.JComponent c)
void
exportToClipboard(javax.swing.JComponent comp, java.awt.datatransfer.Clipboard clip, int action)
boolean
importData(javax.swing.JComponent comp, java.awt.datatransfer.Transferable t)
void
lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
-
-
-
Method Detail
-
canImport
public boolean canImport(javax.swing.JComponent comp, java.awt.datatransfer.DataFlavor[] transferFlavors)
- Overrides:
canImport
in classjavax.swing.TransferHandler
-
createTransferable
protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
- Overrides:
createTransferable
in classjavax.swing.TransferHandler
-
exportToClipboard
public void exportToClipboard(javax.swing.JComponent comp, java.awt.datatransfer.Clipboard clip, int action) throws java.lang.IllegalStateException
- Overrides:
exportToClipboard
in classjavax.swing.TransferHandler
- Throws:
java.lang.IllegalStateException
-
importData
public boolean importData(javax.swing.JComponent comp, java.awt.datatransfer.Transferable t)
- Overrides:
importData
in classjavax.swing.TransferHandler
-
lostOwnership
public void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
- Specified by:
lostOwnership
in interfacejava.awt.datatransfer.ClipboardOwner
-
-