S - Source typepublic interface ClickEvent<S> extends Event<S>
| Modifier and Type | Method and Description |
|---|---|
int |
getButton()
Gets the id of the pressed mouse button.
|
int |
getClickCount()
Gets the number of consecutive clicks recently recorded.
|
int |
getClientX()
Gets the x coordinate of the click event, relative to the upper left corner of the browser viewport.
|
int |
getClientY()
Gets the y coordinate of the click event, relative to the upper left corner of the browser viewport.
|
int |
getScreenX()
Gets the x coordinate of the click event, relative to the upper left corner of the screen.
|
int |
getScreenY()
Gets the y coordinate of the click event, relative to the upper left corner of the screen.
|
boolean |
isAltKey()
Checks whether the alt key was was down when the event was fired.
|
boolean |
isCtrlKey()
Checks whether the ctrl key was was down when the event was fired.
|
boolean |
isFromClient()
Checks if this event originated from the client side.
|
boolean |
isMetaKey()
Checks whether the meta key was was down when the event was fired.
|
boolean |
isShiftKey()
Checks whether the shift key was was down when the event was fired.
|
boolean isFromClient()
true if the event originated from the client side, false otherwiseint getClientX()
int getClientY()
int getScreenX()
int getScreenY()
int getClickCount()
int getButton()
boolean isCtrlKey()
true if the ctrl key was down when the event was fired, false otherwiseboolean isAltKey()
true if the alt key was down when the event was fired, false otherwiseboolean isMetaKey()
true if the meta key was down when the event was fired, false otherwiseboolean isShiftKey()
true if the shift key was down when the event was fired, false otherwiseCopyright © 2020 The Holon Platform. All rights reserved.