public interface SelectElement extends FormControlElement
Provides access to the attributes and to the list of options of the select element.
Element.AlignTo
Modifier and Type | Method and Description |
---|---|
boolean |
isMultiple()
Returns
true if the select element has the multiple attribute and multiple
options of the element can be selected at once. |
void |
multiple(boolean multiple)
Sets the
multiple attribute of the select element to the given multiple
value. |
java.util.List<OptionElement> |
options()
Returns an immutable list of the option elements of the select element.
|
form, isEnabled, value, value
attributeNodes, attributes, attributeValue, blur, boundingClientRect, focus, hasAttribute, innerHtml, innerHtml, innerText, innerText, outerHtml, outerHtml, putAttribute, removeAttribute, scrollIntoView
appendChild, children, click, close, compareDocumentPosition, document, evaluate, evaluate, insertChild, nextSibling, nodeName, nodeValue, nodeValue, parent, previousSibling, removeChild, replaceChild, textContent, textContent, type, xPath
addEventListener, dispatch, eventListeners, removeEventListener
findElementByClassName, findElementByCssSelector, findElementById, findElementByName, findElementByTagName, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByName, findElementsByTagName
java.util.List<OptionElement> options()
ObjectClosedException
- when this instance is closedboolean isMultiple()
true
if the select element has the multiple
attribute and multiple
options of the element can be selected at once.ObjectClosedException
- when this instance is closedvoid multiple(boolean multiple)
multiple
attribute of the select element to the given multiple
value.multiple
- true
to indicate that multiple options can be selected at once. If it
is false, then only one option can be selected at a time.ObjectClosedException
- when this instance is closed