Class FormElement
java.lang.Object
com.itextpdf.styledxmlparser.jsoup.nodes.Node
com.itextpdf.styledxmlparser.jsoup.nodes.Element
com.itextpdf.styledxmlparser.jsoup.nodes.FormElement
- All Implemented Interfaces:
Cloneable
A HTML Form Element provides ready access to the form fields/controls that are associated with it. It also allows a
form to easily be submitted.
-
Field Summary
FieldsFields inherited from class Element
childNodesFields inherited from class Node
EmptyNodes, EmptyString, parentNode, siblingIndex -
Constructor Summary
ConstructorsConstructorDescriptionFormElement(Tag tag, String baseUri, Attributes attributes) Create a new, standalone form element. -
Method Summary
Modifier and TypeMethodDescriptionaddElement(Element element) Add a form control element to this form.clone()Create a stand-alone, deep copy of this node, and all of its children.elements()Get the list of form control elements associated with this form.formData()Get the data that this form submits.protected voidremoveChild(Node out) Methods inherited from class Element
addClass, after, after, append, appendChild, appendChildren, appendElement, appendText, appendTo, attr, attr, attributes, baseUri, before, before, child, childElementsList, 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, insertChild, insertChildren, insertChildren, is, is, isBlock, lastElementSibling, nextElementSibling, nextElementSiblings, nodelistChanged, nodeName, normalName, outerHtmlHead, outerHtmlTail, ownText, parent, parents, prepend, prependChild, prependChildren, prependElement, prependText, preserveWhitespace, previousElementSibling, previousElementSiblings, removeAttr, removeClass, root, select, select, selectFirst, selectFirst, shallowClone, siblingElements, tag, tagName, tagName, text, text, textNodes, toggleClass, traverse, val, val, wholeText, wrapMethods inherited from class Node
absUrl, addChildren, addChildren, attr, 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, unwrap
-
Field Details
-
elements
-
-
Constructor Details
-
FormElement
Create a new, standalone form element.- Parameters:
tag- tag of this elementbaseUri- the base URIattributes- initial attributes
-
-
Method Details
-
elements
Get the list of form control elements associated with this form.- Returns:
- form controls associated with this element.
-
addElement
Add a form control element to this form.- Parameters:
element- form control to add- Returns:
- this form element, for chaining
-
removeChild
- Overrides:
removeChildin classNode
-
formData
-
clone
Description copied from class:NodeCreate a stand-alone, deep copy of this node, and all of its children. The cloned node will have no siblings or parent node. As a stand-alone object, any changes made to the clone or any of its children will not impact the original node.The cloned node may be adopted into another Document or node structure using
Element.appendChild(Node).
-