API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.dnd. DropTargetContext View Source
Author(s)
Since
1.2
Version
1.38, 11/17/05
Serial
Hierarchy
 Object
      DropTargetContext
Implements
 Serializable
Subclasses
Description
public class DropTargetContext
  A DropTargetContext is created whenever the logical cursor associated with a Drag and Drop operation coincides with the visible geometry of a Component associated with a DropTarget.
See also:   
Constructors
pack-private DropTargetContext (DropTarget dt)
  Construct a DropTargetContext given a specified DropTarget.
Methods
Hide/Show inherited methods
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.
public void addNotify (DropTargetContextPeer dtcp)
  Called when associated with the DropTargetContextPeer.
protected Transferable createTransferableProxy (Transferable t, boolean local)
  Creates a TransferableProxy to proxy for the specified Transferable.
public void dropComplete (boolean success) throws InvalidDnDOperationException
  This method signals that the drop is completed and if it was successful or not.
public Component getComponent ()
  This method returns the Component associated with this DropTargetContext.
protected DataFlavor getCurrentDataFlavors ()
  get the available DataFlavors of the Transferable operand of this operation.
protected List<DataFlavor> getCurrentDataFlavorsAsList ()
  This method returns a the currently available DataFlavors of the Transferable operand as a java.util.List.
public DropTarget getDropTarget ()
  This method returns the DropTarget associated with this DropTargetContext.
pack-private DropTargetContextPeer getDropTargetContextPeer ()
  Get the DropTargetContextPeer
protected int getTargetActions ()
  This method returns an int representing the current actions this DropTarget will accept.
protected Transferable getTransferable () throws InvalidDnDOperationException
  get the Transferable (proxy) operand of this operation
protected boolean isDataFlavorSupported (DataFlavor df)
  This method returns a boolean indicating if the given DataFlavor is supported by this DropTargetContext.
protected void rejectDrag ()
reject the Drag.
protected void rejectDrop ()
  called to signal that the drop is unacceptable.
public void removeNotify ()
Called when disassociated with the DropTargetContextPeer.
protected void setTargetActions (int actions)
  This method sets the current actions acceptable to this DropTarget.
Fields
Hide/Show inherited fields
Nested Classes
  DropTargetContext.TransferableProxy
TransferableProxy is a helper inner class that implements Transferable interface and serves as a proxy for another Transferable object which represents data transfer for a particular drag-n-drop operation.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar