java.awt.dnd
Class DropTargetContext
java.lang.Object
java.awt.dnd.DropTargetContext
- All Implemented Interfaces:
- Serializable
public class DropTargetContext
- extends Object
- implements Serializable
- Since:
- 1.2
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getDropTarget
public DropTarget getDropTarget()
getComponent
public Component getComponent()
addNotify
public void addNotify(DropTargetContextPeer dtcp)
removeNotify
public void removeNotify()
setTargetActions
protected void setTargetActions(int actions)
getTargetActions
protected int getTargetActions()
dropComplete
public void dropComplete(boolean success)
- Signals that the drop is completed.
- Throws:
InvalidDnDOperationException
- If a drop is not outstanding.
acceptDrag
protected void acceptDrag(int dragOperation)
rejectDrag
protected void rejectDrag()
acceptDrop
protected void acceptDrop(int dropOperation)
rejectDrop
protected void rejectDrop()
getCurrentDataFlavors
protected DataFlavor[] getCurrentDataFlavors()
getCurrentDataFlavorsAsList
protected List<DataFlavor> getCurrentDataFlavorsAsList()
isDataFlavorSupported
protected boolean isDataFlavorSupported(DataFlavor flavor)
getTransferable
protected Transferable getTransferable()
throws InvalidDnDOperationException
- Return the
Transferable
operandof this operation.
- Throws:
InvalidDnDOperationException
- If a drag is not outstanding.
createTransferableProxy
protected Transferable createTransferableProxy(Transferable t,
boolean local)