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
ConstructorDescriptionHTMLCollectionImpl
(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, toArray
Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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
- aNodeImpl
object.filter
- aNodeFilter
object.
-
-
Method Details
-
getLength
public int getLength()getLength.
- Specified by:
getLength
in interfaceHTMLCollection
- Returns:
- a
Integer
object.
-
item
item.
- Specified by:
item
in interfaceHTMLCollection
- Parameters:
index
- aInteger
object.- Returns:
- a
Node
object.
-
setItem
Description copied from interface:HTMLCollection
item.
- Specified by:
setItem
in interfaceHTMLCollection
- Parameters:
index
- aInteger
object.
-
namedItem
Retrieves a select object or an object from an options collection.- Specified by:
namedItem
in interfaceHTMLCollection
- Parameters:
name
- aString
object.- Returns:
- a
Element
object.
-
toString
-