|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.meterware.httpunit.WebTable
This class represents a table in an HTML page.
Method Summary | |
String[][] |
asText()
Returns a rendering of this table with all cells converted to text. |
String |
getCell(int row,
int column)
Deprecated. use #getCellAsText |
String |
getCellAsText(int row,
int column)
Returns the contents of the specified table cell as text. |
int |
getColumnCount()
Returns the number of columns in the table. |
String |
getID()
Returns the unique ID attribute associated with this table. |
int |
getRowCount()
Returns the number of rows in the table. |
String |
getSummary()
Returns the summary attribute associated with this table. |
TableCell |
getTableCell(int row,
int column)
Returns the contents of the specified table cell as text. |
TableCell |
getTableCellWithID(String id)
Returns the contents of the specified table cell with a given ID |
void |
purgeEmptyCells()
Removes all rows and all columns from this table which have no visible text in them. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public int getRowCount()
public int getColumnCount()
public String getCell(int row, int column)
IndexOutOfBoundsException
- if the specified cell numbers are not validpublic String getCellAsText(int row, int column)
IndexOutOfBoundsException
- if the specified cell numbers are not validpublic TableCell getTableCell(int row, int column)
IndexOutOfBoundsException
- if the specified cell numbers are not validpublic TableCell getTableCellWithID(String id)
public void purgeEmptyCells()
public String[][] asText()
public String getSummary()
public String getID()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |