Package net.infonode.docking.drag
Class DockingWindowDragSource
java.lang.Object
net.infonode.docking.drag.DockingWindowDragSource
Handles the drag and drop of a
DockingWindow
triggered by mouse events on a
JComponent
. DockingWindowDragSource
handles drag abort with the right mouse button and
the key set in the RootWindowProperties.ABORT_DRAG_KEY
property of the
RootWindow
which is the drop target.- Since:
- IDW 1.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionDockingWindowDragSource
(JComponent component, DockingWindowDraggerProvider draggerProvider) Constructor. -
Method Summary
-
Constructor Details
-
DockingWindowDragSource
Constructor.- Parameters:
component
- the component on which to listen to mouse events that affects the drag and drop of aDockingWindow
draggerProvider
- provides theDockingWindowDragger
when the drag operation begins, typically this provider gets the dragger by callingDockingWindow.startDrag(net.infonode.docking.RootWindow)
on the window which should be dragged
-
-
Method Details
-
abortDrag
public void abortDrag()Aborts the currect drag operation.
-