com.levigo.util.swing.dnd
Class VisualRepresentationSupportTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by com.levigo.util.swing.dnd.VisualRepresentationSupportTransferHandler
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ExportHandlerTransferHandler

public class VisualRepresentationSupportTransferHandler
extends TransferHandler

A TransferHandler correctly implementing a visual representation of what is being dragged via TransferHandler.getVisualRepresentation(Transferable), which the standard transfer handler doesn't (at least up to and including 1.6). Unfortunately, this still doesn't cut it, on Windows, as the underlying platform DnD support for Windows also doesn't correctly implement most of that stuff.

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
VisualRepresentationSupportTransferHandler()
           
VisualRepresentationSupportTransferHandler(String property)
           
 
Method Summary
 void exportAsDrag(JComponent comp, InputEvent e, int action)
           
 
Methods inherited from class javax.swing.TransferHandler
canImport, canImport, createTransferable, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getSourceActions, getVisualRepresentation, importData, importData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisualRepresentationSupportTransferHandler

public VisualRepresentationSupportTransferHandler()

VisualRepresentationSupportTransferHandler

public VisualRepresentationSupportTransferHandler(String property)
Method Detail

exportAsDrag

public void exportAsDrag(JComponent comp,
                         InputEvent e,
                         int action)
Overrides:
exportAsDrag in class TransferHandler


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.