com.gargoylesoftware.htmlunit.html
Class HtmlTableRow.CellIterator

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.html.HtmlTableRow.CellIterator
All Implemented Interfaces:
Iterator
Enclosing class:
HtmlTableRow

public class HtmlTableRow.CellIterator
extends Object
implements Iterator

an Iterator over the HtmlTableCells contained in this row. It will also dive into nested forms, even though that is illegal HTML


Constructor Summary
HtmlTableRow.CellIterator()
          create an instance
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 HtmlTableCell nextCell()
           
 void remove()
          remove the cell under the cursor from the current row
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlTableRow.CellIterator

public HtmlTableRow.CellIterator()
create an instance

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator
Returns:
whether there is another cell available

next

public Object next()
            throws NoSuchElementException
Specified by:
next in interface Iterator
Returns:
the next cell
Throws:
NoSuchElementException - if no cell is available

remove

public void remove()
            throws IllegalStateException
remove the cell under the cursor from the current row

Specified by:
remove in interface Iterator
Throws:
IllegalStateException - if there is no currenr row

nextCell

public HtmlTableCell nextCell()
                       throws NoSuchElementException
Returns:
the next cell
Throws:
NoSuchElementException - if no cell is available


Copyright © 2002-2010 Gargoyle Software Inc.. All Rights Reserved.