|
Java Platform 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.dnd.DropTargetContext
A DropTargetContext is created whenever the logical cursor associated with a Drag and Drop operation coincides with the visibel geometry of a Component, with an associated DropTarget. The DropTargetContext provides the mechanism for a potential receiver of a Drop operation to both provide the end userr with the appropriate drag under feedback, but also to effect the subsequent data transfer if appropriate.
Inner Class Summary | |
protected class |
DropTargetContext.TransferableProxy
|
Method Summary | |
protected void |
acceptDrag(int dragOperation)
accept the Drag |
protected void |
acceptDrop(int dropOperation)
called to signal that the drop is acceptable using the specified operation. |
void |
addNotify(java.awt.dnd.peer.DropTargetContextPeer dtcp)
called when associated with the DropTargetContextPeer |
protected Transferable |
createTransferableProxy(Transferable t,
boolean local)
subclasses may override this to supply their own Proxy Transferable |
void |
dropComplete(boolean success)
signal that the drop is completed and if it was successful or not |
Component |
getComponent()
|
protected DataFlavor[] |
getCurrentDataFlavors()
get the available DataFlavors of the Transferable operand of this operation |
protected List |
getCurrentDataFlavorsAsList()
|
DropTarget |
getDropTarget()
|
protected int |
getTargetActions()
|
protected Transferable |
getTransferable()
get the Transferable (proxy) operand of this operation |
protected boolean |
isDataFlavorSupported(DataFlavor df)
|
protected void |
rejectDrag()
reject the Drag |
protected void |
rejectDrop()
called to signal that the drop is unacceptable. |
void |
removeNotify()
called when disassociated with the DropTargetContextPeer |
protected void |
setTargetActions(int actions)
set the current actions acceptable to this DropTarget |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public DropTarget getDropTarget()
public Component getComponent()
public void addNotify(java.awt.dnd.peer.DropTargetContextPeer dtcp)
public void removeNotify()
protected void setTargetActions(int actions)
protected int getTargetActions()
public void dropComplete(boolean success) throws InvalidDnDOperationException
protected void acceptDrag(int dragOperation)
protected void rejectDrag()
protected void acceptDrop(int dropOperation)
protected void rejectDrop()
protected DataFlavor[] getCurrentDataFlavors()
protected List getCurrentDataFlavorsAsList()
protected boolean isDataFlavorSupported(DataFlavor df)
protected Transferable getTransferable() throws InvalidDnDOperationException
protected Transferable createTransferableProxy(Transferable t, boolean local)
|
Java Platform 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |