JIDE 3.5.15

com.jidesoft.editor
Class CodeEditorTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.TransferHandler
TransferHandler.DropLocation, TransferHandler.TransferSupport
 
Field Summary
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, LINK, MOVE, NONE
 
Constructor Summary
protected CodeEditorTransferHandler(CodeEditor editor)
           
 
Method Summary
 boolean canImport(JComponent c, DataFlavor[] transferFlavors)
           
protected  Transferable createTransferable(JComponent c)
          Create a Transferable to use as the source for a data transfer.
 int getSourceActions(JComponent c)
           
 boolean importData(JComponent comp, Transferable t)
           
 
Methods inherited from class javax.swing.TransferHandler
canImport, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation, importData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeEditorTransferHandler

protected CodeEditorTransferHandler(CodeEditor editor)
Method Detail

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

JIDE 3.5.15