| Constructor and Description |
|---|
FormElement(Tag tag,
String baseUri,
Attributes attributes)
Create a new, standalone form element.
|
| Modifier and Type | Method and Description |
|---|---|
FormElement |
addElement(Element element)
Add a form control element to this form.
|
FormElement |
clone()
Create a stand-alone, deep copy of this node, and all of its children.
|
Elements |
elements()
Get the list of form control elements associated with this form.
|
List<Connection.KeyVal> |
formData()
Get the data that this form submits.
|
protected void |
removeChild(Node out) |
Connection |
submit()
Prepare to submit this form.
|
addClass, after, after, append, appendChild, appendChildren, appendElement, appendText, appendTo, attr, attr, attributes, baseUri, before, before, child, childNodeSize, children, childrenSize, className, classNames, classNames, clearAttributes, closest, closest, cssSelector, data, dataNodes, dataset, doClone, doSetBaseUri, elementSiblingIndex, empty, ensureChildNodes, filter, firstElementSibling, getAllElements, getElementById, getElementsByAttribute, getElementsByAttributeStarting, getElementsByAttributeValue, getElementsByAttributeValueContaining, getElementsByAttributeValueEnding, getElementsByAttributeValueMatching, getElementsByAttributeValueMatching, getElementsByAttributeValueNot, getElementsByAttributeValueStarting, getElementsByClass, getElementsByIndexEquals, getElementsByIndexGreaterThan, getElementsByIndexLessThan, getElementsByTag, getElementsContainingOwnText, getElementsContainingText, getElementsMatchingOwnText, getElementsMatchingOwnText, getElementsMatchingText, getElementsMatchingText, hasAttributes, hasChildNodes, hasClass, hasText, html, html, html, id, id, insertChildren, insertChildren, is, is, isBlock, lastElementSibling, nextElementSibling, nextElementSiblings, nodeName, normalName, ownText, parent, parents, prepend, prependChild, prependChildren, prependElement, prependText, previousElementSibling, previousElementSiblings, removeAttr, removeClass, root, select, select, selectFirst, selectFirst, shallowClone, siblingElements, tag, tagName, tagName, text, text, textNodes, toggleClass, traverse, val, val, wholeText, wrapabsUrl, addChildren, addChildren, attr, attributesSize, childNode, childNodes, childNodesAsArray, childNodesCopy, equals, hasAttr, hasParent, hasSameValue, indent, nextSibling, outerHtml, outerHtml, ownerDocument, parentNode, previousSibling, remove, reparentChild, replaceChild, replaceWith, setBaseUri, setParentNode, setSiblingIndex, siblingIndex, siblingNodes, toString, unwrappublic FormElement(Tag tag, String baseUri, Attributes attributes)
tag - tag of this elementbaseUri - the base URIattributes - initial attributespublic Elements elements()
public FormElement addElement(Element element)
element - form control to addprotected void removeChild(Node out)
removeChild in class Nodepublic Connection submit()
Document.connection()
You can then set up other options (like user-agent, timeout, cookies), then execute it.
IllegalArgumentException - if the form's absolute action URL cannot be determined. Make sure you pass the
document's base URI when parsing.public List<Connection.KeyVal> formData()
public FormElement clone()
Node
The cloned node may be adopted into another Document or node structure using Element.appendChild(Node).
clone in class ElementNode.shallowClone()Copyright © 2009–2025 Jonathan Hedley. All rights reserved.