Class HTMLCollectionImpl
java.lang.Object
org.loboevolution.js.AbstractScriptableDelegate
org.loboevolution.html.node.AbstractList<Node>
org.loboevolution.html.dom.domimpl.HTMLCollectionImpl
- All Implemented Interfaces:
Iterable<Node>,Collection<Node>,List<Node>,SequencedCollection<Node>,HTMLCollection,ScriptableDelegate
- Direct Known Subclasses:
HTMLFormControlsCollectionImpl,HTMLOptionsCollectionImpl
HTMLCollectionImpl class.
-
Constructor Summary
ConstructorsConstructorDescriptionHTMLCollectionImpl(NodeImpl rootNode, NodeFilter filter) Constructor for HTMLCollectionImpl. -
Method Summary
Methods inherited from class org.loboevolution.html.node.AbstractList
add, add, addAll, addAll, clear, contains, containsAll, get, getList, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, setList, size, subList, toArray, toArrayMethods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
HTMLCollectionImpl
Constructor for HTMLCollectionImpl.
- Parameters:
rootNode- aNodeImplobject.filter- aNodeFilterobject.
-
-
Method Details
-
getLength
public int getLength()getLength.
- Specified by:
getLengthin interfaceHTMLCollection- Returns:
- a
Integerobject.
-
item
item.
- Specified by:
itemin interfaceHTMLCollection- Parameters:
index- aIntegerobject.- Returns:
- a
Nodeobject.
-
setItem
Description copied from interface:HTMLCollectionitem.
- Specified by:
setItemin interfaceHTMLCollection- Parameters:
index- aIntegerobject.
-
namedItem
Retrieves a select object or an object from an options collection.- Specified by:
namedItemin interfaceHTMLCollection- Parameters:
name- aStringobject.- Returns:
- a
Elementobject.
-
toString
-