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

E13403-02

oracle.jdeveloper.palette
Class DataTransferable

java.lang.Object
  extended by oracle.jdeveloper.palette.DataTransferable
All Implemented Interfaces:
java.awt.datatransfer.Transferable, PaletteTransferable

public abstract class DataTransferable
extends java.lang.Object
implements PaletteTransferable

The DataTransferable abstract class should be subclassed by any palette editor wishing to do drag and drop operations in the JSP Visual Editor. This allows for handling of drag and drop operations, as well as a simple "Click and Clack" operation as well.


Constructor Summary
DataTransferable()
           
 
Method Summary
 Context getContext()
           
 java.awt.datatransfer.Transferable getOptionalTransferable()
          Return your own optionalTransferable to handle right-click drags
abstract  java.lang.String getTransferData()
          Return a String to be parsed and inserted into the Visual Editor.
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
          Deprecated. subclasses should provide their own data
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
          Deprecated. subclasses should provide their own data flavors
 boolean isClicked()
           
 boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
           
 void setContext(Context context)
          Set the current Context
 void setIsClicked(boolean clicked)
          A user may need to know if it the item is actually dragging or was clicked.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface oracle.ide.palette.PaletteTransferable
postConfigure
 

Constructor Detail

DataTransferable

public DataTransferable()
Method Detail

setContext

public void setContext(Context context)
Description copied from interface: PaletteTransferable
Set the current Context

Specified by:
setContext in interface PaletteTransferable
Parameters:
context - the current context

getContext

public Context getContext()

setIsClicked

public void setIsClicked(boolean clicked)
Description copied from interface: PaletteTransferable
A user may need to know if it the item is actually dragging or was clicked.

Specified by:
setIsClicked in interface PaletteTransferable

isClicked

public boolean isClicked()

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Deprecated. subclasses should provide their own data flavors

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

getOptionalTransferable

public java.awt.datatransfer.Transferable getOptionalTransferable()
Description copied from interface: PaletteTransferable
Return your own optionalTransferable to handle right-click drags

Specified by:
getOptionalTransferable in interface PaletteTransferable
Returns:
optional Transferable

getTransferData

public abstract java.lang.String getTransferData()
Return a String to be parsed and inserted into the Visual Editor.

Returns:

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException
Deprecated. subclasses should provide their own data

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

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

E13403-02

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