class PopupMouseHandler extends AbstractMouseDragHandler
PopupWindow
.Modifier and Type | Field and Description |
---|---|
private int |
minHeight
The minimum height of the
PopupWindow . |
private int |
minWidth
The minimum width of the
PopupWindow . |
private Rectangle |
popupRectangle
The current
Rectangle of the PopupWindow . |
private PopupWindow |
popupWindow
The
PopupWindow to manage. |
private Direction |
resizeDirection
The resize
Direction or null for move. |
Constructor and Description |
---|
PopupMouseHandler(PopupWindow popupWindow,
Direction resizeDirection)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
initializeOnMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
Override to add initialization logic to
AbstractMouseDragHandler.onMouseDown(MouseDownEvent) . |
protected boolean |
isActive()
This method can be overridden for dynamic activation of this handler.
|
protected void |
onMouseMove(int deltaX,
int deltaY,
com.google.gwt.dom.client.NativeEvent nativeEvent) |
getMouseX, getMouseY, onMouseDown, onMouseMove, onMouseUp, onPreviewNativeEvent, register
private final PopupWindow popupWindow
PopupWindow
to manage.private Rectangle popupRectangle
Rectangle
of the PopupWindow
.private int minWidth
PopupWindow
.private int minHeight
PopupWindow
.public PopupMouseHandler(PopupWindow popupWindow, Direction resizeDirection)
resizeDirection
- is the resize Direction
or null
for move.popupWindow
- is the PopupWindow
.protected boolean isActive()
isActive
in class AbstractMouseDragHandler
true
if this handler is active, false
if it is inactive (ignores all
events and does nothing).protected void initializeOnMouseDown(com.google.gwt.event.dom.client.MouseDownEvent event)
AbstractMouseDragHandler.onMouseDown(MouseDownEvent)
.initializeOnMouseDown
in class AbstractMouseDragHandler
event
- is the initial MouseDownEvent
.protected void onMouseMove(int deltaX, int deltaY, com.google.gwt.dom.client.NativeEvent nativeEvent)
onMouseMove
in class AbstractMouseDragHandler
deltaX
- is the relative movement of the mouse position on X-axis.deltaY
- is the relative movement of the mouse position on Y-axis.nativeEvent
- is the NativeEvent
that triggered this invocation.AbstractMouseDragHandler.onMouseMove(MouseMoveEvent)
Copyright © 2001–2016 mmm-Team. All rights reserved.