Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.ide.datatransfer
Class TransferableEditorTab

java.lang.Object
  extended by oracle.ide.datatransfer.TransferableEditorTab
All Implemented Interfaces:
java.awt.datatransfer.Transferable

Deprecated. No longer used.

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

An 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.


Field Summary
static java.awt.datatransfer.DataFlavor editorTabFlavor
          Deprecated. Constant that describes the DataFlavor of an Editor window being dragged.
 
Constructor Summary
TransferableEditorTab(javax.swing.JTabbedPane pane, int index)
          Deprecated. Constructs a new EditorTransferable that represents a particular Editor involved in a drag operation.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editorTabFlavor

public static final java.awt.datatransfer.DataFlavor editorTabFlavor
Deprecated. 
Constant that describes the DataFlavor of an Editor window being dragged. We define our own custom one as no one should really be able to accept a drop of an Editor window but ourselves.

Constructor Detail

TransferableEditorTab

public TransferableEditorTab(javax.swing.JTabbedPane pane,
                             int index)
Deprecated. 
Constructs a new EditorTransferable that represents a particular Editor involved in a drag operation.

Parameters:
pane - the editor tabbed pane containing the editor
index - the index of the editor in the tabbed list
Method Detail

getPane

public javax.swing.JTabbedPane getPane()
Deprecated. 
Fetches the JTabbedPane that the editor is contained within.

Returns:
the tabbed pane containing the editor involved in this drag

getIndex

public int getIndex()
Deprecated. 
Fetches the index within the editor tabbed pane that identifies the particular editor.

Returns:
the index of the editor in the tabbed pane

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Deprecated. 
Returns an array of DataFlavor objects indicating the flavors the data can be provided in. The array should be ordered according to preference for providing the data (from most richly descriptive to least descriptive).

Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable
Returns:
an array of data flavors in which this data can be transferred

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Deprecated. 
Returns whether or not the specified data flavor is supported for this object.

Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable
Parameters:
flavor - the requested flavor for the data
Returns:
boolean indicating whether or not the data flavor is supported

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
                                 throws java.awt.datatransfer.UnsupportedFlavorException
Deprecated. 
Returns an object which represents the data to be transferred. The class of the object returned is defined by the representation class of the flavor.

Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Parameters:
flavor - the requested flavor for the data
Throws:
IOException - if the data is no longer available in the requested flavor.
java.awt.datatransfer.UnsupportedFlavorException - if the requested data flavor is not supported.
See Also:
DataFlavor.getRepresentationClass()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.