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:
- java.io.Serializable
- Enclosing class:
- Grid
public static class Grid.GridContextClickEvent
- extends ContextClickEvent
ContextClickEvent for the Grid Component.
- Since:
- 7.6
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
Grid.GridContextClickEvent(Grid source,
com.vaadin.shared.MouseEventDetails mouseEventDetails,
com.vaadin.shared.ui.grid.GridConstants.Section section,
int rowIndex,
java.lang.Object itemId,
java.lang.Object propertyId)
|
|
Method Summary |
Grid |
getComponent()
Gets the component where the event occurred. |
java.lang.Object |
getItemId()
Returns the item id of context clicked row. |
java.lang.Object |
getPropertyId()
Returns property id of clicked column. |
int |
getRowIndex()
Returns the clicked row index relative to Grid section. |
com.vaadin.shared.ui.grid.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 java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Grid.GridContextClickEvent
public Grid.GridContextClickEvent(Grid source,
com.vaadin.shared.MouseEventDetails mouseEventDetails,
com.vaadin.shared.ui.grid.GridConstants.Section section,
int rowIndex,
java.lang.Object itemId,
java.lang.Object propertyId)
getItemId
public java.lang.Object getItemId()
- Returns the item id of context clicked row.
- Returns:
- item id of clicked row;
null if header or footer
getPropertyId
public java.lang.Object getPropertyId()
- Returns property id of clicked column.
- Returns:
- property id
getSection
public com.vaadin.shared.ui.grid.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 with
Grid.getHeaderRow(int) and Grid.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 class Component.Event
- Returns:
- the source component of the event
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.