public class HTMLOptionsCollectionImpl extends HTMLCollectionImpl
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.w3c.dom.html.HTMLOptionElement option,
int index) |
int |
getLength() |
int |
getSelectedIndex() |
Node |
item(int index) |
Node |
namedItem(String name) |
void |
setLength(int value) |
void |
setSelectedIndex(int value) |
equals, hashCodepublic int getSelectedIndex()
public void setSelectedIndex(int value)
public int getLength()
getLength in interface org.w3c.dom.html.HTMLCollectiongetLength in class HTMLCollectionImplpublic void setLength(int value)
throws DOMException
DOMExceptionpublic Node namedItem(String name)
namedItem in interface org.w3c.dom.html.HTMLCollectionnamedItem in class HTMLCollectionImplpublic void add(org.w3c.dom.html.HTMLOptionElement option, int index) throws DOMException
DOMExceptionpublic Node item(int index)
item in interface org.w3c.dom.html.HTMLCollectionitem in class HTMLCollectionImplCopyright © 2025. All rights reserved.