API Reference 0.3.24dart_web_toolkit_uiCell

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

new Cell(HtmlTable _table, int rowIndex, int cellIndex) #

Creates a cell.

@param rowIndex the cell's row @param cellIndex the cell's index

Cell(this._table, this.rowIndex, this.cellIndex);

Properties

final int cellIndex #

final int cellIndex

final int rowIndex #

final int rowIndex

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;
}