Uses of Class
org.htmlunit.html.HtmlOption
-
Packages that use HtmlOption Package Description org.htmlunit.html Classes specific to HTML pages, particularly theHtmlPagewhich represents an HTML document and provides access to its content.org.htmlunit.html.serializer Contains the html serializer implementations. -
-
Uses of HtmlOption in org.htmlunit.html
Methods in org.htmlunit.html that return HtmlOption Modifier and Type Method Description HtmlOptionHtmlSelect. getOption(int index)Returns the indexed option.HtmlOptionHtmlSelect. getOptionByText(java.lang.String text)Returns theHtmlOptionobject that has the specified text.HtmlOptionHtmlSelect. getOptionByValue(java.lang.String value)Returns theHtmlOptionobject that corresponds to the specified value.private HtmlOptionHtmlSelect. getOptionByValueStrict(java.lang.String value)Methods in org.htmlunit.html that return types with arguments of type HtmlOption Modifier and Type Method Description java.util.List<HtmlOption>HtmlSelect. getOptions()Returns all of the options in this select element.java.util.List<HtmlOption>HtmlSelect. getSelectedOptions()Returns all of the currently selected options.Methods in org.htmlunit.html with parameters of type HtmlOption Modifier and Type Method Description voidHtmlSelect. appendOption(HtmlOption newOption)Add a new option at the end.private voidHtmlSelect. doSelectOption(HtmlOption selectedOption, boolean isSelected, boolean shiftKey, boolean ctrlKey, boolean isClick)intHtmlSelect. indexOf(HtmlOption option)INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.voidHtmlSelect. replaceOption(int index, HtmlOption newOption)Replace an option at the given index with a new option.(package private) voidHtmlSelect. setOnlySelected(HtmlOption selectedOption, boolean isSelected)Sets the givenHtmlOptionas the only selected one.<P extends Page>
PHtmlSelect. setSelectedAttribute(HtmlOption selectedOption, boolean isSelected)Sets the "selected" state of the specified option.<P extends Page>
PHtmlSelect. 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.
Sets the "selected" state of the specified option. -
Uses of HtmlOption in org.htmlunit.html.serializer
Methods in org.htmlunit.html.serializer with parameters of type HtmlOption Modifier and Type Method Description protected voidHtmlSerializerVisibleText. appendOption(HtmlSerializerVisibleText.HtmlSerializerTextBuilder builder, HtmlOption htmlOption, HtmlSerializerVisibleText.Mode mode)ProcessHtmlSelect.
-