net.sourceforge.jwebunit.html
Class Row

java.lang.Object
  extended by net.sourceforge.jwebunit.html.Row

public class Row
extends java.lang.Object

Represents a row of an html table.

Author:
Jim Weaver, Julien Henry

Constructor Summary
Row()
           
Row(java.lang.Object[] rowCells)
          Construct a row from an array of objects which specify the cells of the row.
 
Method Summary
 void appendCell(Cell cell)
           
 void appendCell(java.lang.String cellText)
           
 void appendCells(java.lang.Object[] rowCells)
           
 void assertEquals(Row r)
           
 void assertMatch(Row r)
           
 int getCellCount()
           
 java.util.ArrayList getCells()
           
 boolean hasMatch(java.lang.String regexp)
           
 boolean hasText(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Row

public Row()

Row

public Row(java.lang.Object[] rowCells)
Construct a row from an array of objects which specify the cells of the row. If an object in the array is an Cell, it is directly added to the cells of the row, otherwise an Cell is created from the toString() value of the object and an assumed colspan of 1.

Parameters:
rowCells - objects representing the row's cells.
Method Detail

appendCells

public void appendCells(java.lang.Object[] rowCells)

appendCell

public void appendCell(Cell cell)

appendCell

public void appendCell(java.lang.String cellText)

getCells

public java.util.ArrayList getCells()

getCellCount

public int getCellCount()

hasText

public boolean hasText(java.lang.String text)

hasMatch

public boolean hasMatch(java.lang.String regexp)

assertEquals

public void assertEquals(Row r)

assertMatch

public void assertMatch(Row r)


Copyright © 2002-2011 SourceForge. All Rights Reserved.