Package jmri.jmrit.beantable.oblock
Class DnDJTable.DnDHandler
- java.lang.Object
-
- javax.swing.TransferHandler
-
- jmri.jmrit.beantable.oblock.DnDJTable.DnDHandler
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- DnDJTable
static class DnDJTable.DnDHandler extends javax.swing.TransferHandler
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JTable
_table
-
Constructor Summary
Constructors Constructor Description DnDHandler(javax.swing.JTable table)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canImport(javax.swing.JComponent comp, java.awt.datatransfer.DataFlavor[] transferFlavors)
java.awt.datatransfer.Transferable
createTransferable(javax.swing.JComponent c)
void
exportDone(javax.swing.JComponent c, java.awt.datatransfer.Transferable t, int action)
int
getSourceActions(javax.swing.JComponent c)
boolean
importData(javax.swing.JComponent comp, java.awt.datatransfer.Transferable tr)
-
-
-
Field Detail
-
_table
javax.swing.JTable _table
-
-
Constructor Detail
-
DnDHandler
DnDHandler(javax.swing.JTable table)
-
-
Method Detail
-
getSourceActions
public int getSourceActions(javax.swing.JComponent c)
- Overrides:
getSourceActions
in classjavax.swing.TransferHandler
-
createTransferable
public java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
- Overrides:
createTransferable
in classjavax.swing.TransferHandler
-
exportDone
public void exportDone(javax.swing.JComponent c, java.awt.datatransfer.Transferable t, int action)
- Overrides:
exportDone
in classjavax.swing.TransferHandler
-
canImport
public boolean canImport(javax.swing.JComponent comp, java.awt.datatransfer.DataFlavor[] transferFlavors)
- Overrides:
canImport
in classjavax.swing.TransferHandler
-
importData
public boolean importData(javax.swing.JComponent comp, java.awt.datatransfer.Transferable tr)
- Overrides:
importData
in classjavax.swing.TransferHandler
-
-