watij.elements
Class HtmlElementCollections<HtmlElement>

java.lang.Object
  extended by watij.BaseHtmlFinder
      extended by watij.elements.HtmlElementCollections<HtmlElement>
All Implemented Interfaces:
java.lang.Iterable<HtmlElement>, Matcher, HtmlFinder
Direct Known Subclasses:
Buttons, Checkboxes, Divs, FileFields, Forms, Frames, Hiddens, HtmlElements, Images, Labels, Links, Options, Radios, SelectLists, Spans, TableBodies, TableCells, TableRows, Tables, TextFields

public abstract class HtmlElementCollections<HtmlElement>
extends BaseHtmlFinder
implements java.lang.Iterable<HtmlElement>, Matcher

Created by IntelliJ IDEA. User: Date: Apr 16, 2006 Time: 2:36:26 PM To change this template use File | Settings | File Templates.


Constructor Summary
protected HtmlElementCollections(java.util.List<org.w3c.dom.Element> list, HtmlElementFactory htmlElementFactory)
           
 
Method Summary
 java.util.List<org.w3c.dom.Element> elements()
           
protected  void filter()
           
 void flash()
           
protected abstract  HtmlElement get(org.w3c.dom.Element element)
           
 HtmlElement get(int index)
           
protected  HtmlElementFactory htmlElementFactory()
           
 HtmlElements htmlElements(Finder finder)
           
 java.util.Iterator<HtmlElement> iterator()
           
 int length()
           
 void show()
           
 java.lang.String toString()
           
 
Methods inherited from class watij.BaseHtmlFinder
bodies, bodies, bodies, body, body, body, button, button, button, button, buttons, buttons, buttons, cell, cell, cell, cells, cells, cells, checkbox, checkbox, checkbox, checkbox, checkbox, checkboxes, checkboxes, checkboxes, div, div, div, divs, divs, divs, fileField, fileField, fileField, fileFields, fileFields, fileFields, form, form, form, form, forms, forms, forms, frame, frame, frame, frame, frames, frames, frames, hidden, hidden, hidden, hiddens, hiddens, hiddens, htmlElement, htmlElement, htmlElement, htmlElements, htmlElements, image, image, image, images, images, images, label, label, label, label, labels, labels, labels, link, link, link, link, links, links, links, option, option, option, options, options, options, radio, radio, radio, radio, radio, radios, radios, radios, row, row, row, rows, rows, rows, selectList, selectList, selectList, selectList, selectLists, selectLists, selectLists, span, span, span, spans, spans, spans, table, table, table, tables, tables, tables, textField, textField, textField, textFields, textFields, textFields
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface watij.finders.Matcher
matches
 

Constructor Detail

HtmlElementCollections

protected HtmlElementCollections(java.util.List<org.w3c.dom.Element> list,
                                 HtmlElementFactory htmlElementFactory)
                          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

get

protected abstract HtmlElement get(org.w3c.dom.Element element)
                            throws java.lang.Exception
Throws:
java.lang.Exception

htmlElementFactory

protected HtmlElementFactory htmlElementFactory()
Specified by:
htmlElementFactory in class BaseHtmlFinder

elements

public java.util.List<org.w3c.dom.Element> elements()
                                             throws java.lang.Exception
Specified by:
elements in class BaseHtmlFinder
Throws:
java.lang.Exception

get

public HtmlElement get(int index)
                throws java.lang.Exception
Throws:
java.lang.Exception

filter

protected void filter()
               throws java.lang.Exception
Throws:
java.lang.Exception

htmlElements

public HtmlElements htmlElements(Finder finder)
                          throws java.lang.Exception
Specified by:
htmlElements in interface HtmlFinder
Throws:
java.lang.Exception

length

public int length()
           throws java.lang.Exception
Throws:
java.lang.Exception

iterator

public java.util.Iterator<HtmlElement> iterator()
Specified by:
iterator in interface java.lang.Iterable<HtmlElement>

show

public void show()

flash

public void flash()
           throws java.lang.Exception
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object