|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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 | |
java.lang.String[][] |
asText()
Returns a rendering of this table with all cells converted to text. |
java.lang.String |
getCell(int row,
int column)
Deprecated. use #getCellAsText |
java.lang.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. |
java.lang.String |
getID()
Returns the unique ID attribute associated with this table. |
int |
getRowCount()
Returns the number of rows in the table. |
java.lang.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(java.lang.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. |
java.lang.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 java.lang.String getCell(int row, int column)
java.lang.IndexOutOfBoundsException
- if the specified cell numbers are not validpublic java.lang.String getCellAsText(int row, int column)
java.lang.IndexOutOfBoundsException
- if the specified cell numbers are not validpublic TableCell getTableCell(int row, int column)
java.lang.IndexOutOfBoundsException
- if the specified cell numbers are not validpublic TableCell getTableCellWithID(java.lang.String id)
public void purgeEmptyCells()
public java.lang.String[][] asText()
public java.lang.String getSummary()
public java.lang.String getID()
public java.lang.String toString()
toString
in class java.lang.Object
|
Copyright © 2000-2002 Russell Gold. See license agreement for rights granted. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |