version 1.0

com.actimind.actiwate.testing.html.objects
Interface TableRow

All Superinterfaces:
BaseElement, com.actimind.actiwate.testing.logging.Loggable

public interface TableRow
extends BaseElement

Represents HTML table row (tr element).


Method Summary
 TableCell cell(int cellIndex)
          Returns cell by its index.
 TableCell cellByText(java.lang.String textInCell)
          Returns cell in this row having specified text.
 TableCell[] cells()
          Returns cells within this row.
 int cellsNum()
          Returns number of cells in this row.
 int rowNum()
          Returns this row number in a table.
 
Methods inherited from interface com.actimind.actiwate.testing.html.objects.BaseElement
element, id
 
Methods inherited from interface com.actimind.actiwate.testing.logging.Loggable
getLogDesc
 

Method Detail

cells

public TableCell[] cells()
Returns cells within this row. Method returns only those cells that have corresponding td element.

Returns:
cells within this row or empty array if there are no cells.

cell

public TableCell cell(int cellIndex)
               throws LookupException
Returns cell by its index. Index starts from zero.

Parameters:
cellIndex - number of cell in this row
Returns:
cell by its index
Throws:
LookupException - if cell does not exist

cellByText

public TableCell cellByText(java.lang.String textInCell)
                     throws LookupException
Returns cell in this row having specified text.

Parameters:
textInCell - text contained in a cell
Returns:
cell in this row having specified text.
Throws:
LookupException - if there are no cells having specified text.

cellsNum

public int cellsNum()
Returns number of cells in this row. Returned number equals to a number of td elements in this row, colspan attribute is not taken into an account.

Returns:
number of cells in this row.

rowNum

public int rowNum()
Returns this row number in a table.

Returns:
this row number in a table, starting from zero.


Copyright © 2007 Actimind, Inc. All Rights Reserved.