|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jwebunit.html.Cell
public class Cell
Represents a cell of an html table - a string value spanning an indicated amount of columns.
Constructor Summary | |
---|---|
Cell(java.lang.String value)
Construct a cell with a default colspan/rowspan of 1. |
|
Cell(java.lang.String value,
int colspan,
int rowspan)
Construct a cell with a specified colspan. |
Method Summary | |
---|---|
void |
assertEquals(Cell c)
Assert that the current cell equals given one. |
void |
assertMatch(Cell c)
Assert that the current cell matches given one. |
boolean |
equals(java.lang.String text)
Check if the current cell contains given text. |
int |
getColspan()
|
int |
getRowspan()
|
java.lang.String |
getValue()
|
boolean |
match(java.lang.String regexp)
Check if the current cell matches given text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cell(java.lang.String value)
value
- text expected within the cell.public Cell(java.lang.String value, int colspan, int rowspan)
value
- text expected within the cell.colspan
- number of columns the cell is expected to span.rowspan
- number of rows the cell is expected to span.Method Detail |
---|
public int getColspan()
public int getRowspan()
public final java.lang.String getValue()
public void assertEquals(Cell c)
c
- given cellpublic void assertMatch(Cell c)
c
- given cellpublic boolean equals(java.lang.String text)
text
- given text.
public boolean match(java.lang.String regexp)
regexp
- given regexp.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |