public interface FormElement extends Element
Provides access to the contained control elements and the attributes of the form element.
Element.AlignTo
Modifier and Type | Method and Description |
---|---|
java.lang.String |
action()
Returns the value of the action attribute of this form.
|
java.util.List<FormControlElement> |
controls()
Returns an immutable list of the form controls or an empty list if the form got no controls
on it.
|
java.lang.String |
method()
Returns the value of the method attribute of this form.
|
java.lang.String |
name()
Returns the value of the name attribute of this form.
|
void |
reset()
Restores default values of the elements on the form.
|
void |
submit()
Submits the form represented by the element.
|
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
java.lang.String action()
java.lang.IllegalStateException
- when the document this instance belongs to is closedjava.lang.String name()
java.lang.IllegalStateException
- when the document this instance belongs to is closedjava.lang.String method()
java.lang.IllegalStateException
- when the document this instance belongs to is closedvoid reset()
java.lang.IllegalStateException
- when the document this instance belongs to is closedvoid submit()
java.lang.IllegalStateException
- when the document this instance belongs to is closedjava.util.List<FormControlElement> controls()
java.lang.IllegalStateException
- when the document this instance belongs to is closed