API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. TransferHandler.TransferSupport View Source
Author(s)
Since
1.6
Version
Serial
Hierarchy
 Object
      TransferHandler.TransferSupport
Implements
Subclasses
Description
publicfinalstatic class TransferHandler.TransferSupport
  This class encapsulates all relevant details of a clipboard or drag and drop transfer, and also allows for customizing aspects of the drag and drop experience.
Constructors
private TransferHandler.TransferSupport (Component component, DropTargetEvent event)
  Create a TransferSupport with isDrop() true for the given component, event, and index.
public TransferHandler.TransferSupport (Component component, Transferable transferable)
  Create a TransferSupport with isDrop() false for the given component and Transferable.
Methods
Hide/Show inherited methods
public Component getComponent ()
  Returns the target component of this transfer.
public DataFlavor getDataFlavors ()
  Returns the data flavors for this transfer.
public int getDropAction ()
  Returns the action chosen for the drop, when this TransferSupport represents a drop.
public DropLocation getDropLocation ()
  Returns the current (non-null) drop location for the component, when this TransferSupport represents a drop.
public int getSourceDropActions ()
  Returns the drag source's supported drop actions, when this TransferSupport represents a drop.
public Transferable getTransferable ()
  Returns the Transferable associated with this transfer.
public int getUserDropAction ()
  Returns the user drop action for the drop, when this TransferSupport represents a drop.
public boolean isDataFlavorSupported (DataFlavor df)
  Returns whether or not the given data flavor is supported.
public boolean isDrop ()
  Returns whether or not this TransferSupport represents a drop operation.
public void setDropAction (int dropAction)
  Sets the drop action for the transfer - which must represent a drop - to the given action, instead of the default user drop action.
public void setShowDropLocation (boolean showDropLocation)
  Sets whether or not the drop location should be visually indicated for the transfer - which must represent a drop.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar