com.vaadin.ui.

Class Grid.CellReference

  • All Implemented Interfaces:

    Serializable

    Enclosing class:

    Grid

    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:

    Serialized Form

    • 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