com.vaadin.client.widget.grid
Class EventCellReference<T>

java.lang.Object
  extended by com.vaadin.client.widget.grid.CellReference<T>
      extended by com.vaadin.client.widget.grid.EventCellReference<T>

public class EventCellReference<T>
extends CellReference<T>

A data class which contains information which identifies a cell being the target of an event from Grid.

Since this class follows the Flyweight-pattern any instance of this object is subject to change without the user knowing it and so should not be stored anywhere outside of the method providing these instances.

Since:
7.4
Author:
Vaadin Ltd

Constructor Summary
EventCellReference(Grid<T> grid)
           
 
Method Summary
 TableCellElement getElement()
          Get the element of the cell.
 void set(Cell targetCell)
          Sets the RowReference and CellReference to point to given Cell.
 
Methods inherited from class com.vaadin.client.widget.grid.CellReference
getColumn, getColumnIndex, getGrid, getRow, getRowIndex, getRowReference, getValue, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventCellReference

public EventCellReference(Grid<T> grid)
Method Detail

set

public void set(Cell targetCell)
Sets the RowReference and CellReference to point to given Cell.

Parameters:
targetCell - cell to point to

getElement

public TableCellElement getElement()
Description copied from class: CellReference
Get the element of the cell.

Overrides:
getElement in class CellReference<T>
Returns:
the element of the cell


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.