java.awt.dnd
public class DropTargetContext extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
protected class |
DropTargetContext.TransferableProxy |
Modifier and Type | Method and Description |
---|---|
protected void |
acceptDrag(int dragOperation) |
protected void |
acceptDrop(int dropOperation) |
void |
addNotify(DropTargetContextPeer dtcp) |
protected Transferable |
createTransferableProxy(Transferable t,
boolean local) |
void |
dropComplete(boolean success)
Signals that the drop is completed.
|
Component |
getComponent() |
protected DataFlavor[] |
getCurrentDataFlavors() |
protected List<DataFlavor> |
getCurrentDataFlavorsAsList() |
DropTarget |
getDropTarget() |
protected int |
getTargetActions() |
protected Transferable |
getTransferable()
Return the
Transferable operandof this operation. |
protected boolean |
isDataFlavorSupported(DataFlavor flavor) |
protected void |
rejectDrag() |
protected void |
rejectDrop() |
void |
removeNotify() |
protected void |
setTargetActions(int actions) |
public DropTarget getDropTarget()
public Component getComponent()
public void addNotify(DropTargetContextPeer dtcp)
public void removeNotify()
protected void setTargetActions(int actions)
protected int getTargetActions()
public void dropComplete(boolean success)
InvalidDnDOperationException
- If a drop is not outstanding.protected void acceptDrag(int dragOperation)
protected void rejectDrag()
protected void acceptDrop(int dropOperation)
protected void rejectDrop()
protected DataFlavor[] getCurrentDataFlavors()
protected List<DataFlavor> getCurrentDataFlavorsAsList()
protected boolean isDataFlavorSupported(DataFlavor flavor)
protected Transferable getTransferable() throws InvalidDnDOperationException
Transferable
operandof this operation.InvalidDnDOperationException
- If a drag is not outstanding.protected Transferable createTransferableProxy(Transferable t, boolean local)