Package net.infonode.docking.drag
Class DockingWindowDragSource
- java.lang.Object
-
- net.infonode.docking.drag.DockingWindowDragSource
-
public class DockingWindowDragSource extends java.lang.Object
Handles the drag and drop of aDockingWindow
triggered by mouse events on aJComponent
.DockingWindowDragSource
handles drag abort with the right mouse button and the key set in theRootWindowProperties.ABORT_DRAG_KEY
property of theRootWindow
which is the drop target.- Since:
- IDW 1.3.0
-
-
Constructor Summary
Constructors Constructor Description DockingWindowDragSource(javax.swing.JComponent component, DockingWindowDraggerProvider draggerProvider)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abortDrag()
Aborts the currect drag operation.
-
-
-
Constructor Detail
-
DockingWindowDragSource
public DockingWindowDragSource(javax.swing.JComponent component, DockingWindowDraggerProvider draggerProvider)
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
-
-