public class HTMLCollectionImp<T extends HTMLElement> extends Object implements HTMLCollection<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
HTMLCollectionImp.Filter
Should the element be added?
If the filter accepts the element,
it must be possible to cast it to T.
|
| Constructor and Description |
|---|
HTMLCollectionImp() |
HTMLCollectionImp(HTMLElement element,
HTMLCollectionImp.Filter f)
Fills the collection with all descendant elements of the element
that satisfy the filter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(T e) |
int |
getLength() |
T |
item(int index) |
Iterator<T> |
iterator() |
T |
namedItem(String name) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected List<T extends HTMLElement> elements
public HTMLCollectionImp()
public HTMLCollectionImp(HTMLElement element, HTMLCollectionImp.Filter f)
element - the elementf - the filterpublic void add(T e)
public int getLength()
getLength in interface org.w3c.dom.html.HTMLCollectiongetLength in interface NodeListpublic T item(int index)
item in interface org.w3c.dom.html.HTMLCollectionitem in interface NodeListpublic T namedItem(String name)
namedItem in interface org.w3c.dom.html.HTMLCollectionCopyright © 2017. All rights reserved.