com.vaadin.ui
Class Grid.CellReference

java.lang.Object
  extended by com.vaadin.ui.Grid.CellReference
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
Grid

public static class Grid.CellReference
extends java.lang.Object
implements java.io.Serializable

A data class which contains information which identifies a cell in a 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.

See Also:
Serialized Form

Constructor Summary
Grid.CellReference(Grid.RowReference rowReference)
           
 
Method Summary
 Grid getGrid()
          Gets the grid that contains the referenced cell.
 Item getItem()
          Gets the item for the row of the cell.
 java.lang.Object getItemId()
          Gets the item id of the row of the cell.
 Property<?> getProperty()
           
 java.lang.Object getPropertyId()
           
 java.lang.Object getValue()
          Gets the value of the cell.
 void set(java.lang.Object propertyId)
          Sets the identifying information for this cell
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grid.CellReference

public Grid.CellReference(Grid.RowReference rowReference)
Method Detail

set

public void set(java.lang.Object propertyId)
Sets the identifying information for this cell

Parameters:
propertyId - the property id of the column

getGrid

public Grid getGrid()
Gets the grid that contains the referenced cell.

Returns:
the grid that contains referenced cell

getPropertyId

public java.lang.Object getPropertyId()
Returns:
the property id of the column

getProperty

public Property<?> getProperty()
Returns:
the property for the cell

getItemId

public java.lang.Object getItemId()
Gets the item id of the row of the cell.

Returns:
the item id of the row

getItem

public Item getItem()
Gets the item for the row of the cell.

Returns:
the item for the row

getValue

public java.lang.Object getValue()
Gets the value of the cell.

Returns:
the value of the cell


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