com.vaadin.ui
Class Grid.GridContextClickEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.vaadin.event.ConnectorEvent
          extended by com.vaadin.ui.Component.Event
              extended by com.vaadin.event.MouseEvents.ClickEvent
                  extended by com.vaadin.event.ContextClickEvent
                      extended by 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

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
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 com.vaadin.event.ConnectorEvent
getConnector
 
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
 

Constructor Detail

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)
Method Detail

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.