Cell class
Return value for {@link HTMLTable#getCellForEvent}.
class Cell {
HtmlTable _table;
final int rowIndex;
final int cellIndex;
/**
* Creates a cell.
*
* @param rowIndex the cell's row
* @param cellIndex the cell's index
*/
Cell(this._table, this.rowIndex, this.cellIndex);
/**
* Gets the cell index.
*
* @return the cell index
*/
int getCellIndex() {
return cellIndex;
}
/**
* Gets the cell's element.
*
* @return the cell's element.
*/
dart_html.Element getElement() {
return _table.getCellFormatter().getElement(rowIndex, cellIndex);
}
/**
* Get row index.
*
* @return the row index
*/
int getRowIndex() {
return rowIndex;
}
}
Constructors
Methods
int getCellIndex() #
Gets the cell index.
@return the cell index
int getCellIndex() {
return cellIndex;
}
Element getElement() #
Gets the cell's element.
@return the cell's element.
dart_html.Element getElement() {
return _table.getCellFormatter().getElement(rowIndex, cellIndex);
}
int getRowIndex() #
Get row index.
@return the row index
int getRowIndex() {
return rowIndex;
}