public static class Grid.GridContextClickEvent extends ContextClickEvent
ContextClickEvent.ContextClickListener, ContextClickEvent.ContextClickNotifierCONTEXT_CLICK_METHODBUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHTsource| Constructor and Description |
|---|
GridContextClickEvent(Grid source,
MouseEventDetails mouseEventDetails,
GridConstants.Section section,
int rowIndex,
Object itemId,
Object propertyId) |
| Modifier and Type | Method and Description |
|---|---|
Grid |
getComponent()
Gets the component where the event occurred.
|
Object |
getItemId()
Returns the item id of context clicked row.
|
Object |
getPropertyId()
Returns property id of clicked column.
|
int |
getRowIndex()
Returns the clicked row index relative to Grid section.
|
GridConstants.Section |
getSection()
Return the clicked section of Grid.
|
getButton, getButtonName, getClientX, getClientY, getRelativeX, getRelativeY, isAltKey, isCtrlKey, isDoubleClick, isMetaKey, isShiftKeygetConnectorgetSource, toStringpublic GridContextClickEvent(Grid source, MouseEventDetails mouseEventDetails, GridConstants.Section section, int rowIndex, Object itemId, Object propertyId)
public Object getItemId()
null if header or footerpublic Object getPropertyId()
public GridConstants.Section getSection()
public int getRowIndex()
Grid.getHeaderRow(int) and Grid.getFooterRow(int).public Grid getComponent()
Component.EventgetComponent in class Component.EventCopyright © 2023 Vaadin Ltd. All rights reserved.