version 1.0

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

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

public interface Table
extends BaseElement

Represents an HTML table.


Method Summary
 TableCell cell(int rowIndex, int cellIndex)
          Returns table cell by row and cell index.
 TableCell cellByText(java.lang.String textInCell)
          Returns table cell having specified text.
 TableRow row(int rowIndex)
          Returns table row by index.
 TableRow[] rows()
          Returns table rows.
 int rowsNum()
          Returns number of rows in this 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

rows

public TableRow[] rows()
Returns table rows.

Returns:
table rows or empty array if there are no rows.

row

public TableRow row(int rowIndex)
             throws LookupException
Returns table row by index. Index starts from zero.

Parameters:
rowIndex - index of a row in table, starting from zero
Returns:
table row by rowIndex
Throws:
LookupException - if row does not exist

cell

public TableCell cell(int rowIndex,
                      int cellIndex)
Returns table cell by row and cell index. Row and cell indexes start from zero.

Parameters:
rowIndex - index of a row in table, starting from zero
cellIndex - index of a cell in table, starting from zero
Returns:
table cell by row and cell index
Throws:
LookupException - if cell does not exist

cellByText

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

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

rowsNum

public int rowsNum()
Returns number of rows in this table.

Returns:
number of rows in this table.


Copyright © 2007 Actimind, Inc. All Rights Reserved.