com.vaadin.ui.
Class Grid.CellReference
- java.lang.Object
-
- com.vaadin.ui.Grid.CellReference
-
All Implemented Interfaces:
Enclosing class:
public static class Grid.CellReference extends Object implements 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:
-
-
Constructor Summary
Constructors Constructor Description CellReference(Grid.RowReference rowReference)
-
Method Summary
All Methods Modifier and Type Method Description Grid
getGrid()
Gets the grid that contains the referenced cell.
Item
getItem()
Gets the item for the row of the cell.
Object
getItemId()
Gets the item id of the row of the cell.
Property<?>
getProperty()
Object
getPropertyId()
Object
getValue()
Gets the value of the cell.
void
set(Object propertyId)
Sets the identifying information for this cell
-
-
-
Constructor Detail
-
CellReference
public CellReference(Grid.RowReference rowReference)
-
-
Method Detail
-
set
public void set(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 Object getPropertyId()
Returns:
the property id of the column
-
getProperty
public Property<?> getProperty()
Returns:
the property for the cell
-
getItemId
public 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 Object getValue()
Gets the value of the cell.
Returns:
the value of the cell
-
-