Package com.moneydance.awt
Class TableRowTransferHandler
java.lang.Object
javax.swing.TransferHandler
com.moneydance.awt.TableRowTransferHandler
- All Implemented Interfaces:
java.io.Serializable
public class TableRowTransferHandler
extends javax.swing.TransferHandler
Handles drag & drop row reordering
From https://stackoverflow.com/a/4769575
- See Also:
- Serialized Form
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TableRowTransferHandler(javax.swing.JTable table)
-
Method Summary
Modifier and Type Method Description boolean
canImport(javax.swing.TransferHandler.TransferSupport info)
java.awt.datatransfer.Transferable
createTransferable(javax.swing.JComponent c)
protected void
exportDone(javax.swing.JComponent c, java.awt.datatransfer.Transferable t, int act)
int
getSourceActions(javax.swing.JComponent c)
boolean
importData(javax.swing.TransferHandler.TransferSupport info)
-
Constructor Details
-
TableRowTransferHandler
public TableRowTransferHandler(javax.swing.JTable table)
-
-
Method Details
-
createTransferable
public java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)- Overrides:
createTransferable
in classjavax.swing.TransferHandler
-
canImport
public boolean canImport(javax.swing.TransferHandler.TransferSupport info)- Overrides:
canImport
in classjavax.swing.TransferHandler
-
getSourceActions
public int getSourceActions(javax.swing.JComponent c)- Overrides:
getSourceActions
in classjavax.swing.TransferHandler
-
importData
public boolean importData(javax.swing.TransferHandler.TransferSupport info)- Overrides:
importData
in classjavax.swing.TransferHandler
-
exportDone
protected void exportDone(javax.swing.JComponent c, java.awt.datatransfer.Transferable t, int act)- Overrides:
exportDone
in classjavax.swing.TransferHandler
-