Package com.vaadin.ui.renderers
Class ClickableRenderer.RendererClickEvent<T>
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Component.Event
-
- com.vaadin.event.MouseEvents.ClickEvent
-
- com.vaadin.ui.renderers.ClickableRenderer.RendererClickEvent<T>
-
- Type Parameters:
T
- the item type associated with this click event
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ClickableRenderer<T,V>
public static class ClickableRenderer.RendererClickEvent<T> extends MouseEvents.ClickEvent
An event fired when a clickable widget rendered by a ClickableRenderer is clicked.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.vaadin.event.MouseEvents.ClickEvent
BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RendererClickEvent(Grid<T> source, T item, Grid.Column<T,?> column, MouseEventDetails mouseEventDetails)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Grid.Column<T,?>
getColumn()
Returns theGrid.Column
where the click event originated.T
getItem()
Returns the item of the row where the click event originated.-
Methods inherited from class com.vaadin.event.MouseEvents.ClickEvent
getButton, getButtonName, getClientX, getClientY, getMouseEventDetails, getRelativeX, getRelativeY, isAltKey, isCtrlKey, isDoubleClick, isMetaKey, isShiftKey
-
Methods inherited from class com.vaadin.ui.Component.Event
getComponent
-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
RendererClickEvent
protected RendererClickEvent(Grid<T> source, T item, Grid.Column<T,?> column, MouseEventDetails mouseEventDetails)
-
-
Method Detail
-
getItem
public T getItem()
Returns the item of the row where the click event originated.- Returns:
- the item of the clicked row
- Since:
- 8.0
-
getColumn
public Grid.Column<T,?> getColumn()
Returns theGrid.Column
where the click event originated.- Returns:
- the column of the click event
-
-