com.gargoylesoftware.htmlunit.html
Class HtmlTableRow.CellIterator

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

public class HtmlTableRow.CellIterator
extends java.lang.Object
implements java.util.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()
  
 java.lang.Object next()
  
 HtmlTableCell nextCell()
  
 void remove()
 remove the cell under the cursor from the current row
 
Methods inherited from class java.lang.Object
equals, 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 java.util.Iterator
Returns:
whether there is another cell available

next

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

nextCell

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

remove

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

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


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.