Package io.jmix.ui.component
Class DataGrid.ItemClickEvent<E>
java.lang.Object
java.util.EventObject
io.jmix.ui.component.DataGrid.AbstractDataGridEvent
io.jmix.ui.component.DataGrid.DataGridClickEvent
io.jmix.ui.component.DataGrid.ItemClickEvent<E>
- All Implemented Interfaces:
Serializable
Click event fired by a
DataGrid
- See Also:
-
Field Summary
Fields inherited from class io.jmix.ui.component.DataGrid.DataGridClickEvent
details
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionItemClickEvent
(DataGrid component, MouseEventDetails details, E item, Object itemId, String columnId) Constructor for a item click event. -
Method Summary
Methods inherited from class io.jmix.ui.component.DataGrid.DataGridClickEvent
getButton, getClientX, getClientY, getRelativeX, getRelativeY, isAltKey, isCtrlKey, isDoubleClick, isMetaKey, isShiftKey
Methods inherited from class io.jmix.ui.component.DataGrid.AbstractDataGridEvent
getSource
Methods inherited from class java.util.EventObject
toString
-
Field Details
-
item
-
itemId
-
columnId
-
-
Constructor Details
-
ItemClickEvent
public ItemClickEvent(DataGrid component, MouseEventDetails details, E item, @Nullable Object itemId, @Nullable String columnId) Constructor for a item click event.- Parameters:
component
- the DataGrid from which this event originatesdetails
- an instance ofMouseEventDetails
with information about mouse event detailsitem
- an entity instance represented by the clicked rowitemId
- an item IdcolumnId
- id of the clicked DataGrid column
-
-
Method Details
-
getItem
- Returns:
- an entity instance represented by the clicked row
-
getItemId
- Returns:
- an item Id
-
getColumnId
- Returns:
- id of the clicked DataGrid column
-