Package com.vaadin.ui
Class Grid.RowReference
- java.lang.Object
-
- com.vaadin.ui.Grid.RowReference
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Grid
public static class Grid.RowReference extends Object implements Serializable
A data class which contains information which identifies a row in aGrid
.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
Constructors Constructor Description RowReference(Grid grid)
Creates a new row reference for the given grid.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Grid
getGrid()
Gets the grid that contains the referenced row.Item
getItem()
Gets the item for the row.Object
getItemId()
Gets the item id of the row.void
set(Object itemId)
Sets the identifying information for this row
-
-
-
Constructor Detail
-
RowReference
public RowReference(Grid grid)
Creates a new row reference for the given grid.- Parameters:
grid
- the grid that the row belongs to
-
-
Method Detail
-
set
public void set(Object itemId)
Sets the identifying information for this row- Parameters:
itemId
- the item id of the row
-
getGrid
public Grid getGrid()
Gets the grid that contains the referenced row.- Returns:
- the grid that contains referenced row
-
getItemId
public Object getItemId()
Gets the item id of the row.- Returns:
- the item id of the row
-
getItem
public Item getItem()
Gets the item for the row.- Returns:
- the item for the row
-
-