public interface FormControlElement extends Element
Element.AlignTo
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. |
attributeNodes, attributes, attributeValue, blur, boundingClientRect, focus, hasAttribute, innerHtml, innerHtml, innerText, innerText, outerHtml, outerHtml, putAttribute, removeAttribute, scrollIntoView
appendChild, children, click, 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
boolean 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