Package com.vaadin.ui
Class Grid.ItemClick<T>
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Grid.ItemClick<T>
-
- Type Parameters:
T- the grid bean type
- All Implemented Interfaces:
Serializable
public static class Grid.ItemClick<T> extends ConnectorEvent
An event fired when an item in the Grid has been clicked.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description ItemClick(Grid<T> source, Grid.Column<T,?> column, T item, MouseEventDetails mouseEventDetails, int rowIndex)Creates a newItemClickevent containing the given item and Column originating from the given Grid.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Grid.Column<T,?>getColumn()Returns the clicked column.TgetItem()Returns the clicked item.MouseEventDetailsgetMouseEventDetails()Returns the mouse event details.intgetRowIndex()Returns the clicked rowIndex.Grid<T>getSource()Returns the source Grid.-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
ItemClick
public ItemClick(Grid<T> source, Grid.Column<T,?> column, T item, MouseEventDetails mouseEventDetails, int rowIndex)
Creates a newItemClickevent containing the given item and Column originating from the given Grid.- Parameters:
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 cell
-
-
Method Detail
-
getItem
public T getItem()
Returns the clicked item.- Returns:
- the clicked item
-
getColumn
public Grid.Column<T,?> getColumn()
Returns the clicked column.- Returns:
- the clicked column
-
getSource
public Grid<T> getSource()
Returns the source Grid.- Overrides:
getSourcein classEventObject- Returns:
- the grid
-
getMouseEventDetails
public MouseEventDetails getMouseEventDetails()
Returns the mouse event details.- Returns:
- the mouse event details
-
getRowIndex
public int getRowIndex()
Returns the clicked rowIndex.- Returns:
- the clicked rowIndex
- Since:
- 8.4
-
-