| java.lang.Object net.sourceforge.jwebunit.html.Cell
Cell | public class Cell (Code) | | Represents a cell of an html table - a string value spanning an indicated amount of columns.
author: Jim Weaver author: Julien Henry |
Constructor Summary | |
public | Cell(String value) Construct a cell with a default colspan/rowspan of 1. | public | Cell(String value, int colspan, int rowspan) Construct a cell with a specified colspan. |
Method Summary | |
public void | assertEquals(Cell c) Assert that the current cell equals given one. | public void | assertMatch(Cell c) Assert that the current cell matches given one. | public boolean | equals(String text) Check if the current cell contains given text.
Parameters: text - given text. | public int | getColspan() | public int | getRowspan() | final public String | getValue() | public boolean | match(String regexp) Check if the current cell matches given text.
Parameters: regexp - given regexp. |
Cell | public Cell(String value)(Code) | | Construct a cell with a default colspan/rowspan of 1.
Parameters: value - text expected within the cell. |
Cell | public Cell(String value, int colspan, int rowspan)(Code) | | Construct a cell with a specified colspan.
Parameters: value - text expected within the cell. Parameters: colspan - number of columns the cell is expected to span. Parameters: rowspan - number of rows the cell is expected to span. |
assertEquals | public void assertEquals(Cell c)(Code) | | Assert that the current cell equals given one. Check text, colspan and rowspan.
Parameters: c - given cell |
assertMatch | public void assertMatch(Cell c)(Code) | | Assert that the current cell matches given one. Check colspan and rowspan. Regexp is in text of given cell.
Parameters: c - given cell |
equals | public boolean equals(String text)(Code) | | Check if the current cell contains given text.
Parameters: text - given text. true if the current cell contains given text. |
getColspan | public int getColspan()(Code) | | the colspan for this cell. |
getRowspan | public int getRowspan()(Code) | | the rowspan for this cell. |
getValue | final public String getValue()(Code) | | the text for the cell. |
match | public boolean match(String regexp)(Code) | | Check if the current cell matches given text.
Parameters: regexp - given regexp. true if the current cell matches given text. |
|
|