DropTarget
using this DropTargetListener
. A {@link com.mucommander.ui.main.FolderPanel} instance has to be specified at creation time, this instance will beused to change the current folder, or copy/move files to the current folder. There are 2 different modes this class can operate in. The mode to be used has to be specified when this class is instantiated.
In 'folder change mode', when a file or string representing a file path is dropped, the associated FolderPanel's current folder is changed:
In the normal mode, files (or file paths) that are dropped can also be moved or copied to the associated FolderPanel's current folder, on top of the change current folder action. The actual drop action performed (move, copy or change current folder) depends on the keyboard modifiers typed by the user when dragging the files. When the mouse cursor enters the drop-enabled component's area, it is changed to symbolize the action to be performed. The default drop action (when no modifier is down) is copy.
Drop events originating from the same FolderPanel are on purpose not accepted as spring-loaded folders are not (yet) supported which would make the drop operation ambiguous and confusing. @author Maxence Bernard
|
|
|
|