com.vaadin.client.widget.escalator
Class Cell

java.lang.Object
  extended by com.vaadin.client.widget.escalator.Cell

public class Cell
extends java.lang.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 Summary
Cell(int row, int column, TableCellElement element)
          Constructs a new Cell.
 
Method Summary
 int getColumn()
          Returns the index of the column the cell resides in.
 TableCellElement getElement()
          Returns the element of the cell.
 int getRow()
          Returns the index of the row the cell resides in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cell

public Cell(int row,
            int column,
            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 TableCellElement getElement()
Returns the element of the cell.

Returns:
the cell element


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