public class TransferableEditorTab
extends java.lang.Object
implements java.awt.datatransfer.Transferable
TransferableEditorTab is an implementation of the
 Transferable interface to support Drag-n-Drop of an open editor
 window (such as a Code Editor window or Class Editor window) to
 another JTabbedPane, or to the JDesktopPane
 to open another separate JTabbedPane. 
 The TransferableEditorTab simply stores the particular
 JTabbedPane and index to point to the particular
 Editor involved in the drag. 
| Modifier and Type | Field and Description | 
|---|---|
static java.awt.datatransfer.DataFlavor | 
editorTabFlavor
Deprecated.  
Constant that describes the DataFlavor of an Editor window being
 dragged. 
 | 
| Constructor and Description | 
|---|
TransferableEditorTab(javax.swing.JTabbedPane pane,
                     int index)
Deprecated.  
Constructs a new  
EditorTransferable that represents
 a particular Editor involved in a drag operation. | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getIndex()
Deprecated.  
Fetches the index within the editor tabbed pane that identifies
 the particular editor. 
 | 
javax.swing.JTabbedPane | 
getPane()
Deprecated.  
Fetches the  
JTabbedPane that the editor is
 contained within. | 
java.lang.Object | 
getTransferData(java.awt.datatransfer.DataFlavor flavor)
Deprecated.  
Returns an object which represents the data to be transferred. 
 | 
java.awt.datatransfer.DataFlavor[] | 
getTransferDataFlavors()
Deprecated.  
Returns an array of DataFlavor objects indicating the flavors the
 data can be provided in. 
 | 
boolean | 
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Deprecated.  
Returns whether or not the specified data flavor is supported for
 this object. 
 | 
public static final java.awt.datatransfer.DataFlavor editorTabFlavor
public TransferableEditorTab(javax.swing.JTabbedPane pane,
                     int index)
EditorTransferable that represents
 a particular Editor involved in a drag operation.pane - the editor tabbed pane containing the editorindex - the index of the editor in the tabbed listpublic javax.swing.JTabbedPane getPane()
JTabbedPane that the editor is
 contained within.public int getIndex()
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface java.awt.datatransfer.Transferablepublic boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
isDataFlavorSupported in interface java.awt.datatransfer.Transferableflavor - the requested flavor for the datapublic java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
                                 throws java.awt.datatransfer.UnsupportedFlavorException
getTransferData in interface java.awt.datatransfer.Transferableflavor - the requested flavor for the dataIOException - if the data is no longer available
            in the requested flavor.java.awt.datatransfer.UnsupportedFlavorException - if the requested data
            flavor is not supported.DataFlavor.getRepresentationClass()