public static class Button.ClickEvent extends Component.Event
source
Constructor and Description |
---|
ClickEvent(Component source)
New instance of text change event.
|
ClickEvent(Component source,
MouseEventDetails details)
Constructor with mouse details
|
Modifier and Type | Method and Description |
---|---|
Button |
getButton()
Gets the Button where the event occurred.
|
int |
getClientX()
Returns the mouse position (x coordinate) when the click took place.
|
int |
getClientY()
Returns the mouse position (y coordinate) when the click took place.
|
int |
getRelativeX()
Returns the relative mouse position (x coordinate) when the click
took place.
|
int |
getRelativeY()
Returns the relative mouse position (y coordinate) when the click
took place.
|
boolean |
isAltKey()
Checks if the Alt key was down when the mouse event took place.
|
boolean |
isCtrlKey()
Checks if the Ctrl key was down when the mouse event took place.
|
boolean |
isMetaKey()
Checks if the Meta key was down when the mouse event took place.
|
boolean |
isShiftKey()
Checks if the Shift key was down when the mouse event took place.
|
getComponent
getConnector
getSource, toString
public ClickEvent(Component source)
source
- the Source of the event.public ClickEvent(Component source, MouseEventDetails details)
source
- The source where the click took placedetails
- Details about the mouse clickpublic Button getButton()
public int getClientX()
public int getClientY()
public int getRelativeX()
public int getRelativeY()
public boolean isAltKey()
public boolean isCtrlKey()
public boolean isMetaKey()
public boolean isShiftKey()
Copyright © 2019 Vaadin Ltd. All rights reserved.