Package com.vaadin.featurepack.event
Class MouseEvents.ClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<com.vaadin.flow.component.Component>
com.vaadin.featurepack.ui.Event
com.vaadin.featurepack.event.MouseEvents.AbstractClickEvent
com.vaadin.featurepack.event.MouseEvents.ClickEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LayoutEvents.LayoutClickEvent
- Enclosing interface:
MouseEvents
@DomEvent("mouseup")
public static class MouseEvents.ClickEvent
extends MouseEvents.AbstractClickEvent
Legacy MouseEvent class for holding information about a mouse click
event. A
MouseEvents.ClickEvent is fired when the user clicks on a
Component.
The information available for click events are terminal dependent.
Correct values for all event details cannot be guaranteed.- Author:
- Vaadin Ltd.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionClickEvent(com.vaadin.flow.component.Component source, boolean fromClient, int clientX, int clientY, int clickCount, int button, boolean ctrlKey, boolean shiftKey, boolean altKey, boolean metaKey, int relativeX, int relativeY) ClickEvent(com.vaadin.flow.component.Component source, MouseEventDetails mouseEventDetails) -
Method Summary
Methods inherited from class com.vaadin.featurepack.event.MouseEvents.AbstractClickEvent
getButton, getButtonName, getClientX, getClientY, getComponent, getMouseEventDetails, getRelativeX, getRelativeY, isAltKey, isCtrlKey, isDoubleClick, isMetaKey, isShiftKeyMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
ClickEvent
public ClickEvent(com.vaadin.flow.component.Component source, boolean fromClient, @EventData("event.clientX") int clientX, @EventData("event.clientY") int clientY, @EventData("event.detail") int clickCount, @EventData("event.button") int button, @EventData("event.ctrlKey") boolean ctrlKey, @EventData("event.shiftKey") boolean shiftKey, @EventData("event.altKey") boolean altKey, @EventData("event.metaKey") boolean metaKey, @EventData("event.clientX - element.getBoundingClientRect().x") int relativeX, @EventData("event.clientY - element.getBoundingClientRect().y") int relativeY)
-