Package com.vaadin.ui

Class Grid.GridContextClickEvent

    • 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 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