Package jmri.util
Class DnDStringImportHandler
- java.lang.Object
-
- javax.swing.TransferHandler
-
- jmri.util.DnDStringImportHandler
-
- All Implemented Interfaces:
java.io.Serializable
public class DnDStringImportHandler extends javax.swing.TransferHandler
Simple TransferHandler that overwrites the text in a JTextField component. Use JTextField default handler if you want insertion.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DnDStringImportHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canImport(javax.swing.JComponent comp, java.awt.datatransfer.DataFlavor[] transferFlavors)
boolean
importData(javax.swing.JComponent comp, java.awt.datatransfer.Transferable tr)
-
-
-
Constructor Detail
-
DnDStringImportHandler
public DnDStringImportHandler()
-
-
Method Detail
-
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
-
-