Package com.vaadin.ui
Class Grid.GridContextClickEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.event.ConnectorEvent
-
- com.vaadin.ui.Component.Event
-
- com.vaadin.event.MouseEvents.ClickEvent
-
- com.vaadin.event.ContextClickEvent
-
- com.vaadin.ui.Grid.GridContextClickEvent
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Grid
public static class Grid.GridContextClickEvent extends ContextClickEvent
ContextClickEvent for the Grid Component.- Since:
- 7.6
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.event.ContextClickEvent
ContextClickEvent.ContextClickListener, ContextClickEvent.ContextClickNotifier
-
-
Field Summary
-
Fields inherited from class com.vaadin.event.ContextClickEvent
CONTEXT_CLICK_METHOD
-
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 Constructor Description GridContextClickEvent(Grid source, MouseEventDetails mouseEventDetails, GridConstants.Section section, int rowIndex, Object itemId, Object propertyId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class com.vaadin.event.MouseEvents.ClickEvent
getButton, getButtonName, getClientX, getClientY, getRelativeX, getRelativeY, isAltKey, isCtrlKey, isDoubleClick, isMetaKey, isShiftKey
-
Methods inherited from class com.vaadin.event.ConnectorEvent
getConnector
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
GridContextClickEvent
public GridContextClickEvent(Grid source, MouseEventDetails mouseEventDetails, GridConstants.Section section, int rowIndex, Object itemId, Object propertyId)
-
-
Method Detail
-
getItemId
public Object getItemId()
Returns the item id of context clicked row.- Returns:
- item id of clicked row;
null
if header or footer
-
getPropertyId
public Object getPropertyId()
Returns property id of clicked column.- Returns:
- property id
-
getSection
public GridConstants.Section getSection()
Return the clicked section of Grid.- Returns:
- section of grid
-
getRowIndex
public int getRowIndex()
Returns the clicked row index relative to Grid section. In the body of the Grid the index is the item index in the Container. Header and Footer rows for index can be fetched withGrid.getHeaderRow(int)
andGrid.getFooterRow(int)
.- Returns:
- row index in section
-
getComponent
public Grid getComponent()
Description copied from class:Component.Event
Gets the component where the event occurred.- Overrides:
getComponent
in classComponent.Event
- Returns:
- the source component of the event
-
-