public int getUserDropAction ()

Returns the user drop action for the drop, when this TransferSupport represents a drop.

The user drop action is chosen for a drop as described in the documentation for java.awt.dnd.DropTargetDragEvent and java.awt.dnd.DropTargetDropEvent. A different action may be chosen as the drop action by way of the setDropAction method.

You may wish to query this in TransferHandler's canImport method when determining the suitability of a drop or when deciding on a drop action to explicitly choose.

This method is only for use with drag and drop transfers. Calling it when isDrop() is false results in an IllegalStateException.

Returns:  the user drop action

Exceptions:
IllegalStateException    if this is not a drop

See also:
setDropAction, getDropAction, isDrop()