com.alee.extended.tab
Class DocumentTransferable

java.lang.Object
  extended by com.alee.extended.tab.DocumentTransferable
All Implemented Interfaces:
java.awt.datatransfer.Transferable

public class DocumentTransferable
extends java.lang.Object
implements java.awt.datatransfer.Transferable

Custom Transferable for WebDocumentPane documents.

Author:
Mikle Garin
See Also:
How to use WebDocumentPane, WebDocumentPane

Field Summary
static java.awt.datatransfer.DataFlavor flavor
          DocumentData data flavor.
static java.awt.datatransfer.DataFlavor[] flavors
          DocumentData data flavors array.
 
Constructor Summary
DocumentTransferable(DocumentData document)
          Constructs new DocumentTransferable for the specified DocumentData.
 
Method Summary
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
          
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
          
 boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flavor

public static final java.awt.datatransfer.DataFlavor flavor
DocumentData data flavor.


flavors

public static final java.awt.datatransfer.DataFlavor[] flavors
DocumentData data flavors array.

Constructor Detail

DocumentTransferable

public DocumentTransferable(DocumentData document)
Constructs new DocumentTransferable for the specified DocumentData.

Parameters:
document - dragged DocumentData
Method Detail

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()

Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)

Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException

Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException