net.sf.jomic.comic
Class ComicViewTransferHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by net.sf.jomic.comic.ComicViewTransferHandler
All Implemented Interfaces:
Serializable

public class ComicViewTransferHandler
extends TransferHandler

TransferHandler to support clipboard operations in a ComicView.

Author:
Thomas Aglassinger
See Also:
ComicView, Serialized Form

Field Summary
 
Fields inherited from class javax.swing.TransferHandler
COPY, COPY_OR_MOVE, MOVE, NONE
 
Constructor Summary
ComicViewTransferHandler()
           
ComicViewTransferHandler(String property)
           
 
Method Summary
 boolean canImport(JComponent component, DataFlavor[] flavors)
           
protected  Transferable createTransferable(JComponent component)
           
 int getSourceActions(JComponent c)
           
 
Methods inherited from class javax.swing.TransferHandler
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

ComicViewTransferHandler

public ComicViewTransferHandler()

ComicViewTransferHandler

public ComicViewTransferHandler(String property)
Method Detail

getSourceActions

public int getSourceActions(JComponent c)
Overrides:
getSourceActions in class TransferHandler

canImport

public boolean canImport(JComponent component,
                         DataFlavor[] flavors)
Overrides:
canImport in class TransferHandler

createTransferable

protected Transferable createTransferable(JComponent component)
Overrides:
createTransferable in class TransferHandler