T - the grid bean typepublic static class Grid.ItemClick<T> extends ConnectorEvent
source| Constructor and Description |
|---|
ItemClick(Grid<T> source,
Grid.Column<T,?> column,
T item,
MouseEventDetails mouseEventDetails,
int rowIndex)
Creates a new
ItemClick event containing the given item and
Column originating from the given Grid. |
| Modifier and Type | Method and Description |
|---|---|
Grid.Column<T,?> |
getColumn()
Returns the clicked column.
|
T |
getItem()
Returns the clicked item.
|
MouseEventDetails |
getMouseEventDetails()
Returns the mouse event details.
|
int |
getRowIndex()
Returns the clicked rowIndex.
|
Grid<T> |
getSource()
Returns the source Grid.
|
getConnectortoStringpublic ItemClick(Grid<T> source, Grid.Column<T,?> column, T item, MouseEventDetails mouseEventDetails, int rowIndex)
ItemClick event containing the given item and
Column originating from the given Grid.source - the grid where the event originated fromcolumn - the column that contains the clicked cellitem - the item that was clickedmouseEventDetails - mouse event details about the clickrowIndex - the index of the row that contains the clicked cellpublic T getItem()
public Grid.Column<T,?> getColumn()
public Grid<T> getSource()
getSource in class EventObjectpublic MouseEventDetails getMouseEventDetails()
public int getRowIndex()
Copyright © 2022 Vaadin Ltd. All rights reserved.