public interface FormControlElement extends Element
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<FormElement> |
form()
Returns an
Optional that contains the HTML element for the form that contains this
element, otherwise an empty Optional. |
boolean |
isEnabled()
Returns
true if the current form control is enabled. |
java.lang.String |
value()
Returns a string that represents the value associated with the form control.
|
void |
value(java.lang.String value)
Associates the given
value with the control. |
attributes, attributeValue, blur, boundingClientRect, focus, hasAttribute, innerHtml, innerHtml, innerText, innerText, outerHtml, outerHtml, putAttribute, removeAttributeappendChild, children, click, document, evaluate, evaluate, insertChild, nextSibling, nodeName, nodeValue, nodeValue, parent, previousSibling, removeChild, replaceChild, textContent, textContent, typeaddEventListener, dispatch, eventListeners, removeEventListenerfindElementByClassName, findElementByCssSelector, findElementById, findElementByName, findElementByTagName, findElementsByClassName, findElementsByCssSelector, findElementsById, findElementsByName, findElementsByTagNameboolean isEnabled()
true if the current form control is enabled.java.lang.IllegalStateException - when the document this instance belongs to is closedjava.lang.String value()
java.lang.IllegalStateException - when the document this instance belongs to is closedvoid value(java.lang.String value)
value with the control.value - the value to setjava.lang.IllegalStateException - when the document this instance belongs to is closedjava.util.Optional<FormElement> form()
Optional that contains the HTML element for the form that contains this
element, otherwise an empty Optional.java.lang.IllegalStateException - when the document this instance belongs to is closed