Sets the drop action for the transfer - which must represent a drop
- to the given action,
instead of the default user drop action. The action must be
supported by the source's drop actions, and must be one
of COPY, MOVE or LINK.
This method is only for use with drag and drop transfers.
Calling it when isDrop() is false results
in an IllegalStateException.
dropAction | the drop action |
IllegalStateException | if this is not a drop | |
IllegalArgumentException | if an invalid action is specified |
getDropAction, getUserDropAction, getSourceDropActions, isDrop()
Diagram: TransferHandler