Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

oracle.apps.fnd.applcore.dt.patterns.metadata.creator.panel
Class AttributeDropTarget

java.lang.Object
  extended by oracle.apps.fnd.applcore.dt.patterns.metadata.creator.panel.AttributeDropTarget
All Implemented Interfaces:
oracle.bali.ewt.dTree.DTreeDropTarget

public class AttributeDropTarget
extends java.lang.Object
implements oracle.bali.ewt.dTree.DTreeDropTarget

This class handles a drop on the target node.


Field Summary
 
Fields inherited from interface oracle.bali.ewt.dTree.DTreeDropTarget
SELF_INDEX
 
Constructor Summary
AttributeDropTarget()
           
 
Method Summary
static AttributeDropTarget getDropTarget()
          This method returns a singleton instance of this class.
 int getTargetAction(oracle.bali.ewt.dTree.DTreeItem item, int index, java.awt.Point itemPos, java.awt.datatransfer.DataFlavor[] flavors, int userAction, int sourceActions)
          This method returns the target action for the specified props.
 boolean handleDrop(oracle.bali.ewt.dTree.DTreeItem item, int index, java.awt.Point itemPos, java.awt.datatransfer.Transferable transferable, int dropAction)
          This method handles a drop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeDropTarget

public AttributeDropTarget()
Method Detail

getDropTarget

public static AttributeDropTarget getDropTarget()
This method returns a singleton instance of this class.

Returns:
The instance of this class.

getTargetAction

public int getTargetAction(oracle.bali.ewt.dTree.DTreeItem item,
                           int index,
                           java.awt.Point itemPos,
                           java.awt.datatransfer.DataFlavor[] flavors,
                           int userAction,
                           int sourceActions)
This method returns the target action for the specified props.

Specified by:
getTargetAction in interface oracle.bali.ewt.dTree.DTreeDropTarget
Parameters:
item - The tree node.
index - The index of the item.
itemPos - The position of the item.
flavors - Supported data flavors.
userAction - The type of action.
sourceActions - The source actions.
Returns:
The target action.

handleDrop

public boolean handleDrop(oracle.bali.ewt.dTree.DTreeItem item,
                          int index,
                          java.awt.Point itemPos,
                          java.awt.datatransfer.Transferable transferable,
                          int dropAction)
This method handles a drop.

Specified by:
handleDrop in interface oracle.bali.ewt.dTree.DTreeDropTarget
Parameters:
item - The tree node.
index - The index of the item.
itemPos - Position of the item.
transferable - The Transferable object.
dropAction - The type of drop action.
Returns:
Indicate if the drop has succeeded.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.1.5)

E22562-01

Copyright © 2011 Oracle. All Rights Reserved.