Class ClickableRenderer.RendererClickEvent
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.renderers.ClickableRenderer.RendererClickEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
ClickableRenderer<T>
@DomEvent("click")
public static class ClickableRenderer.RendererClickEvent
extends MouseEvents.AbstractClickEvent
An event fired when a button rendered by a ButtonRenderer is clicked.
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRendererClickEvent(FGrid source, Object itemId, FGrid.Column column, MouseEventDetails mouseEventDetails) RendererClickEvent(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) -
Method Summary
Modifier and TypeMethodDescriptionReturns theFGrid.Columnwhere the click event originated.Returns the item ID of the row where the click event originated.Returns the property ID where the click event originated.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
-
Field Details
-
itemId
-
column
-
-
Constructor Details
-
RendererClickEvent
public RendererClickEvent(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)
-
-
Method Details
-
getItemId
Returns the item ID of the row where the click event originated.- Returns:
- the item ID of the clicked row
-
getColumn
Returns theFGrid.Columnwhere the click event originated.- Returns:
- the column of the click event
-
getPropertyId
Returns the property ID where the click event originated.- Returns:
- the property ID of the clicked cell
-