Package com.vaadin.featurepack.ui
Class FButton.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.ui.FButton.ClickEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
FButton
Click event. This event is thrown, when the button is clicked.
- Author:
- Vaadin Ltd.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionClickEvent(com.vaadin.flow.component.Component source) New instance of text change event.ClickEvent(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 details) Constructor with mouse details -
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) -
ClickEvent
public ClickEvent(com.vaadin.flow.component.Component source) New instance of text change event.- Parameters:
source- the Source of the event.
-
-
Method Details
-
getFButton
Gets the Button where the event occurred.- Returns:
- the Source of the event.
-