Package net.infonode.docking.drag
Interface DockingWindowDragger
public interface DockingWindowDragger
Handles the drag and drop of a
DockingWindow
. Note the the drag operation MUST be terminated using either
abortDrag()
or dropWindow(MouseEvent)
.- Since:
- IDW 1.3.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Aborts this drag operation.void
dragWindow
(MouseEvent mouseEvent) Drags the window to a new location.void
dropWindow
(MouseEvent mouseEvent) Drops the window at the specified location.The window that is dragged and dropped.Returns theRootWindow
where the window can be dropped.
-
Method Details
-
getDropTarget
RootWindow getDropTarget()Returns theRootWindow
where the window can be dropped.- Returns:
- the
RootWindow
where the window can be dropped
-
getDragWindow
DockingWindow getDragWindow()The window that is dragged and dropped.- Returns:
- the window that is dragged and dropped.
-
dragWindow
Drags the window to a new location. The location is relative to theRootWindow
in where it should be dropped, seegetDropTarget()
.- Parameters:
mouseEvent
- the mouse event that caused the drag
-
abortDrag
void abortDrag()Aborts this drag operation. -
dropWindow
Drops the window at the specified location.- Parameters:
mouseEvent
- the mouse event that caused the drop
-