Class HtmlTableRow.CellIterator
java.lang.Object
org.htmlunit.html.HtmlTableRow.CellIterator
- All Implemented Interfaces:
Iterable<HtmlTableCell>, Iterator<HtmlTableCell>
- Enclosing class:
HtmlTableRow
public class HtmlTableRow.CellIterator
extends Object
implements Iterator<HtmlTableCell>, Iterable<HtmlTableCell>
An Iterator over the HtmlTableCells contained in this row. It will also dive
into nested forms, even though that is illegal HTML.
- Author:
- Mike Bowler, David K. Taylor, Christian Sell, Ahmed Ashour, Ronald Brill, Frank Danek
-
Constructor Details
-
CellIterator
public CellIterator()Creates an instance.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<HtmlTableCell>- Returns:
- whether there is another cell available
-
next
- Specified by:
nextin interfaceIterator<HtmlTableCell>- Returns:
- the next cell
- Throws:
NoSuchElementException- if no cell is available
-
remove
public void remove()Removes the cell under the cursor from the current row.- Specified by:
removein interfaceIterator<HtmlTableCell>
-
nextCell
- Returns:
- the next cell
- Throws:
NoSuchElementException- if no cell is available
-
iterator
Returns an HtmlTableCell iterator.- Specified by:
iteratorin interfaceIterable<HtmlTableCell>- Returns:
- an HtmlTableCell Iterator.
-