Class Cell


  • public class Cell
    extends Object
    Describes a cell

    It's a representation of the element in a grid cell, and its row and column indices.

    Unlike the FlyweightRow, an instance of Cell can be stored in a field.

    Since:
    7.4
    Author:
    Vaadin Ltd
    • Constructor Detail

      • Cell

        public Cell​(int row,
                    int column,
                    com.google.gwt.dom.client.TableCellElement element)
        Constructs a new Cell.
        Parameters:
        row - The index of the row
        column - The index of the column
        element - The cell element
    • Method Detail

      • getRow

        public int getRow()
        Returns the index of the row the cell resides in.
        Returns:
        the row index
      • getColumn

        public int getColumn()
        Returns the index of the column the cell resides in.
        Returns:
        the column index
      • getElement

        public com.google.gwt.dom.client.TableCellElement getElement()
        Returns the element of the cell.
        Returns:
        the cell element