jdbreport.model.clipboard
Class ReportTransferable

java.lang.Object
  extended by jdbreport.model.clipboard.ReportTransferable
All Implemented Interfaces:
ClipboardOwner, Transferable

public class ReportTransferable
extends Object
implements Transferable, ClipboardOwner

Version:
2.0 01.06.2010
Author:
Andrey Kholmanskih

Nested Class Summary
static class ReportTransferable.TypeFlavor
           
 
Field Summary
static String FLAVOR_MIME_TYPE
           
static String FLAVOR_XML_BYTE_MIME_TYPE
           
static String FLAVOR_XML_MIME_TYPE
           
 
Constructor Summary
ReportTransferable()
           
 
Method Summary
 void addCopyData(Object copyData, ReportTransferable.TypeFlavor type)
           
 Object getTransferData(DataFlavor flavor)
           
 DataFlavor[] getTransferDataFlavors()
           
 boolean isDataFlavorSupported(DataFlavor flavor)
           
 void lostOwnership(Clipboard clipboard, Transferable contents)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAVOR_MIME_TYPE

public static final String FLAVOR_MIME_TYPE
See Also:
Constant Field Values

FLAVOR_XML_MIME_TYPE

public static final String FLAVOR_XML_MIME_TYPE
See Also:
Constant Field Values

FLAVOR_XML_BYTE_MIME_TYPE

public static final String FLAVOR_XML_BYTE_MIME_TYPE
See Also:
Constant Field Values
Constructor Detail

ReportTransferable

public ReportTransferable()
Method Detail

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()
Specified by:
getTransferDataFlavors in interface Transferable

isDataFlavorSupported

public boolean isDataFlavorSupported(DataFlavor flavor)
Specified by:
isDataFlavorSupported in interface Transferable

getTransferData

public Object getTransferData(DataFlavor flavor)
                       throws UnsupportedFlavorException,
                              IOException
Specified by:
getTransferData in interface Transferable
Throws:
UnsupportedFlavorException
IOException

lostOwnership

public void lostOwnership(Clipboard clipboard,
                          Transferable contents)
Specified by:
lostOwnership in interface ClipboardOwner

addCopyData

public void addCopyData(Object copyData,
                        ReportTransferable.TypeFlavor type)
Parameters:
copyData - The copyData to set.