|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.webtoolkit.jwt.WMouseEvent
public class WMouseEvent
A class providing details for a mouse event.
WInteractWidget.clicked(),
WInteractWidget.doubleClicked(),
WInteractWidget.mouseWentDown(),
WInteractWidget.mouseWentUp(),
WInteractWidget.mouseWentOver(),
WInteractWidget.mouseMoved()| Nested Class Summary | |
|---|---|
static class |
WMouseEvent.Button
Enumeration for the mouse button. |
| Constructor Summary | |
|---|---|
WMouseEvent()
Default constructor. |
|
| Method Summary | |
|---|---|
WAbstractEvent |
createFromJSEvent(eu.webtoolkit.jwt.JavaScriptEvent jsEvent)
Internal method. |
WMouseEvent.Button |
getButton()
Returns the button. |
Coordinates |
getDocument()
Returns the mouse position relative to the document. |
Coordinates |
getDragDelta()
Returns the distance over which the mouse has been dragged. |
java.util.EnumSet<KeyboardModifier> |
getModifiers()
Returns keyboard modifiers. |
Coordinates |
getScreen()
Returns the mouse position relative to the screen. |
int |
getWheelDelta()
Returns the scroll wheel delta. |
Coordinates |
getWidget()
Returns the mouse position relative to the widget. |
Coordinates |
getWindow()
Returns the mouse position relative to the window. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WMouseEvent()
| Method Detail |
|---|
public WMouseEvent.Button getButton()
If multiple buttons are currently pressed for a mouse moved or mouse dragged event, then the one with the smallest numerical value is returned.
public java.util.EnumSet<KeyboardModifier> getModifiers()
The result is a logical OR of KeyboardModifier
flags.
public Coordinates getDocument()
public Coordinates getWindow()
This differs from documentX() only through scrolling through the document.
public Coordinates getScreen()
public Coordinates getWidget()
public Coordinates getDragDelta()
This is only defined for a WInteractWidget#mouseWentUp() event.
public int getWheelDelta()
This is 1 when wheel was scrolled up or -1 when wheel was scrolled down.
This is only defined for a WInteractWidget#mouseWheel() event.
public WAbstractEvent createFromJSEvent(eu.webtoolkit.jwt.JavaScriptEvent jsEvent)
WAbstractEvent
createFromJSEvent in interface WAbstractEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||