net.infonode.docking.drag

Class DockingWindowDragSource

public class DockingWindowDragSource extends Object

Handles the drag and drop of a {@link net.infonode.docking.DockingWindow} triggered by mouse events on a {@link JComponent}. {@link DockingWindowDragSource} handles drag abort with the right mouse button and the key set in the {@link net.infonode.docking.properties.RootWindowProperties#ABORT_DRAG_KEY} property of the {@link net.infonode.docking.RootWindow} which is the drop target.

Since: IDW 1.3.0

Version: $Revision: 1.7 $

Author: $Author: johan $

Constructor Summary
DockingWindowDragSource(JComponent component, DockingWindowDraggerProvider draggerProvider)
Constructor.
Method Summary
voidabortDrag()
Aborts the currect drag operation.

Constructor Detail

DockingWindowDragSource

public DockingWindowDragSource(JComponent component, DockingWindowDraggerProvider draggerProvider)
Constructor.

Parameters: component the component on which to listen to mouse events that affects the drag and drop of a {@link net.infonode.docking.DockingWindow} draggerProvider provides the {@link DockingWindowDragger} when the drag operation begins, typically this provider gets the dragger by calling {@link net.infonode.docking.DockingWindow#startDrag(net.infonode.docking.RootWindow)} on the window which should be dragged

Method Detail

abortDrag

public void abortDrag()
Aborts the currect drag operation.