com.jidesoft.editor
Class CodeEditorTransferHandler
java.lang.Object
javax.swing.TransferHandler
com.jidesoft.editor.CodeEditorTransferHandler
- All Implemented Interfaces:
- Serializable, UIResource
public class CodeEditorTransferHandler
- extends TransferHandler
- implements UIResource
The TransferHandler for CodeEditor.
- Since:
- 3.5.11
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeEditorTransferHandler
protected CodeEditorTransferHandler(CodeEditor editor)
createTransferable
protected Transferable createTransferable(JComponent c)
- Create a Transferable to use as the source for a data transfer.
- Overrides:
createTransferable
in class TransferHandler
- Parameters:
c
- The component holding the data to be transferred. This argument is provided to enable sharing of
TransferHandlers by multiple components.
- Returns:
- The representation of the data to be transferred.
canImport
public boolean canImport(JComponent c,
DataFlavor[] transferFlavors)
- Overrides:
canImport
in class TransferHandler
importData
public boolean importData(JComponent comp,
Transferable t)
- Overrides:
importData
in class TransferHandler
getSourceActions
public int getSourceActions(JComponent c)
- Overrides:
getSourceActions
in class TransferHandler