public class Cell extends Object
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.
Constructor and Description |
---|
Cell(int row,
int column,
com.google.gwt.dom.client.TableCellElement element)
Constructs a new
Cell . |
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Returns the index of the column the cell resides in.
|
com.google.gwt.dom.client.TableCellElement |
getElement()
Returns the element of the cell.
|
int |
getRow()
Returns the index of the row the cell resides in.
|
public Cell(int row, int column, com.google.gwt.dom.client.TableCellElement element)
Cell
.row
- The index of the rowcolumn
- The index of the columnelement
- The cell elementpublic int getRow()
public int getColumn()
public com.google.gwt.dom.client.TableCellElement getElement()
Copyright © 2019 Vaadin Ltd. All rights reserved.