Package | Description |
---|---|
com.gargoylesoftware.htmlunit.html |
Classes specific to HTML pages, particularly the HtmlPage which represents
an HTML document and provides access to its content.
|
com.gargoylesoftware.htmlunit.javascript.host.html |
Implementations of the HTML JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
|
Modifier and Type | Method and Description |
---|---|
HtmlOption |
HtmlSelect.getOption(int index)
Returns the indexed option.
|
HtmlOption |
HtmlSelect.getOptionByText(String text)
Returns the
HtmlOption object that has the specified text. |
HtmlOption |
HtmlSelect.getOptionByValue(String value)
Returns the
HtmlOption object that corresponds to the specified value. |
Modifier and Type | Method and Description |
---|---|
List<HtmlOption> |
HtmlSelect.getOptions()
Returns all of the options in this select element.
|
List<HtmlOption> |
HtmlSelect.getSelectedOptions()
Returns all of the currently selected options.
|
Modifier and Type | Method and Description |
---|---|
void |
HtmlSelect.appendOption(HtmlOption newOption)
Add a new option at the end.
|
void |
HtmlSelect.replaceOption(int index,
HtmlOption newOption)
Replace an option at the given index with a new option.
|
<P extends Page> |
HtmlSelect.setSelectedAttribute(HtmlOption selectedOption,
boolean isSelected)
Sets the "selected" state of the specified option.
|
<P extends Page> |
HtmlSelect.setSelectedAttribute(HtmlOption selectedOption,
boolean isSelected,
boolean invokeOnFocus)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Sets the "selected" state of the specified option. |
Modifier and Type | Method and Description |
---|---|
HtmlOption |
HTMLOptionElement.getDomNodeOrNull()
Returns the DOM node that corresponds to this JavaScript object
or null if a node hasn't been set.
|
Modifier and Type | Method and Description |
---|---|
protected void |
HTMLSelectElement.addBefore(HTMLOptionElement newOptionObject,
HtmlOption beforeOption)
Adds the option (and create the associated DOM node if needed) before the specified one
or at the end if the specified one in null.
|
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.