Package | Description |
---|---|
org.htmlunit.html |
Classes specific to HTML pages, particularly the
HtmlPage which represents
an HTML document and provides access to its content. |
org.htmlunit.html.serializer |
Contains the html serializer implementations.
|
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.
|
int |
HtmlSelect.indexOf(HtmlOption option)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
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,
boolean shiftKey,
boolean ctrlKey,
boolean isClick)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
Modifier and Type | Method and Description |
---|---|
protected void |
HtmlSerializerVisibleText.appendOption(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder,
HtmlOption htmlOption,
HtmlSerializerVisibleText.HtmlSerializerTextBuilder.Mode mode)
Process
HtmlSelect . |
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.