public final class DropUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static int |
acceptDrag(java.awt.dnd.DropTargetDragEvent dtde,
int supportedActions)
Accepts or rejects a drag over a drop target based on a set of supported
actions.
|
static int |
acceptDrop(java.awt.dnd.DropTargetDropEvent dtde,
int actions)
Accepts or rejects a drop onto a drop target based on a set of
supported actions.
|
static java.lang.String |
addConnection(IdeAction action,
Context context)
Adds a connection to the current active Application/Workspace.
|
static java.lang.String |
addConnection(java.lang.String id,
javax.naming.Context from,
javax.naming.Context to)
Bind a Connection from source to target.
|
static java.lang.String |
addConnection(java.lang.String connId,
IdeAction action,
Context context,
oracle.adf.share.connection.ConnectionType type) |
static java.lang.String |
addConnection(java.awt.datatransfer.Transferable trans,
javax.naming.Context appContext)
Adds the connection associated with a Resource to an Application.
|
static boolean |
callConnectionHelper(IdeAction action,
Context context,
oracle.adf.share.connection.ConnectionType type) |
static boolean |
callConnectionHelper(IdeAction action,
Context context,
javax.naming.Referenceable connection) |
static boolean |
callConnectionHelper(IdeAction action,
Context context,
RepositoryRootNode node) |
static java.net.URL |
getResourceURL(java.awt.datatransfer.Transferable trans) |
static boolean |
isResource(java.awt.dnd.DropTargetDragEvent dtde)
Determines whether the specified Drag event describes a Resource.
|
static boolean |
isResource(java.awt.dnd.DropTargetDropEvent dtde)
Determines whether the specified Drop event describes a Resource.
|
static oracle.javatools.datatransfer.AugmentableTransferable |
performAugmentation(java.awt.datatransfer.Transferable trans)
Augments a transferable by performing all transformation supported by the
registered DataTranfer plugins.
|
public static boolean isResource(java.awt.dnd.DropTargetDropEvent dtde)
dtde - the Drop eventpublic static boolean isResource(java.awt.dnd.DropTargetDragEvent dtde)
dtde - the Drag eventpublic static int acceptDrop(java.awt.dnd.DropTargetDropEvent dtde,
int actions)
dtde - the DropTargetDropEvent describing the drop eventactions - the set of allowable actionsjava.awt.dnd.DnDConstants.ACTION_NONEpublic static int acceptDrag(java.awt.dnd.DropTargetDragEvent dtde,
int supportedActions)
dtde - the DropTargetDragEvent that describes the dragsupportedActions - the set of supported actionsjava.awt.dnd.DnDConstants.ACTION_NONEpublic static java.lang.String addConnection(java.awt.datatransfer.Transferable trans,
javax.naming.Context appContext)
throws javax.naming.NamingException
trans - the Transferable from the drop operationappContext - the Context describing where the connection should be addedjavax.naming.NamingExceptionpublic static java.lang.String addConnection(java.lang.String id,
javax.naming.Context from,
javax.naming.Context to)
id - from - to - public static java.lang.String addConnection(java.lang.String connId,
IdeAction action,
Context context,
oracle.adf.share.connection.ConnectionType type)
public static java.lang.String addConnection(IdeAction action, Context context)
action - context - public static oracle.javatools.datatransfer.AugmentableTransferable performAugmentation(java.awt.datatransfer.Transferable trans)
trans - the Transferable from the drop operationpublic static java.net.URL getResourceURL(java.awt.datatransfer.Transferable trans)
public static boolean callConnectionHelper(IdeAction action, Context context, RepositoryRootNode node)
public static boolean callConnectionHelper(IdeAction action, Context context, javax.naming.Referenceable connection)