jdbreport.model.clipboard
Class ReportTransferable
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ReportTransferable
public ReportTransferable()
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.