public class FormElement extends Element
Modifier and Type | Field and Description |
---|---|
private Elements |
elements |
childNodes
EmptyString, parentNode, siblingIndex
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.
|
Elements |
elements()
Get the list of form control elements associated with this form.
|
List<Connection.KeyVal> |
formData()
Get the data that this form submits.
|
Connection |
submit()
Prepare to submit this form.
|
addClass, after, after, append, appendChild, appendElement, appendText, appendTo, attr, attr, attributes, baseUri, before, before, child, childNodeSize, children, className, classNames, classNames, clone, cssSelector, data, dataNodes, dataset, doClone, doSetBaseUri, elementSiblingIndex, empty, ensureChildNodes, firstElementSibling, getAllElements, getElementById, getElementsByAttribute, getElementsByAttributeStarting, getElementsByAttributeValue, getElementsByAttributeValueContaining, getElementsByAttributeValueEnding, getElementsByAttributeValueMatching, getElementsByAttributeValueMatching, getElementsByAttributeValueNot, getElementsByAttributeValueStarting, getElementsByClass, getElementsByIndexEquals, getElementsByIndexGreaterThan, getElementsByIndexLessThan, getElementsByTag, getElementsContainingOwnText, getElementsContainingText, getElementsMatchingOwnText, getElementsMatchingOwnText, getElementsMatchingText, getElementsMatchingText, hasAttributes, hasClass, hasText, html, html, html, id, insertChildren, insertChildren, is, is, isBlock, lastElementSibling, nextElementSibling, nodelistChanged, nodeName, outerHtmlHead, outerHtmlTail, ownText, parent, parents, prepend, prependChild, prependElement, prependText, preserveWhitespace, previousElementSibling, removeClass, select, selectFirst, siblingElements, tag, tagName, tagName, text, text, textNodes, toggleClass, toString, val, val, wrap
absUrl, addChildren, addChildren, attr, childNode, childNodes, childNodesAsArray, childNodesCopy, clearAttributes, equals, filter, getOutputSettings, hasAttr, hasParent, hasSameValue, indent, nextSibling, outerHtml, outerHtml, ownerDocument, parentNode, previousSibling, remove, removeAttr, removeChild, reparentChild, replaceChild, replaceWith, root, setBaseUri, setParentNode, setSiblingIndex, siblingIndex, siblingNodes, traverse, unwrap
public 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 addpublic Connection submit()
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()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses