Package net.infonode.docking.drag
Interface DockingWindowDragger
-
public interface DockingWindowDraggerHandles the drag and drop of aDockingWindow. Note the the drag operation MUST be terminated using eitherabortDrag()ordropWindow(MouseEvent).- Since:
- IDW 1.3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidabortDrag()Aborts this drag operation.voiddragWindow(java.awt.event.MouseEvent mouseEvent)Drags the window to a new location.voiddropWindow(java.awt.event.MouseEvent mouseEvent)Drops the window at the specified location.DockingWindowgetDragWindow()The window that is dragged and dropped.RootWindowgetDropTarget()Returns theRootWindowwhere the window can be dropped.
-
-
-
Method Detail
-
getDropTarget
RootWindow getDropTarget()
Returns theRootWindowwhere the window can be dropped.- Returns:
- the
RootWindowwhere the window can be dropped
-
getDragWindow
DockingWindow getDragWindow()
The window that is dragged and dropped.- Returns:
- the window that is dragged and dropped.
-
dragWindow
void dragWindow(java.awt.event.MouseEvent mouseEvent)
Drags the window to a new location. The location is relative to theRootWindowin where it should be dropped, seegetDropTarget().- Parameters:
mouseEvent- the mouse event that caused the drag
-
abortDrag
void abortDrag()
Aborts this drag operation.
-
dropWindow
void dropWindow(java.awt.event.MouseEvent mouseEvent)
Drops the window at the specified location.- Parameters:
mouseEvent- the mouse event that caused the drop
-
-