|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jsoup.nodes.Node
org.jsoup.nodes.Element
org.jsoup.nodes.FormElement
public class FormElement
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.
| Constructor Summary | |
|---|---|
FormElement(Tag tag,
String baseUri,
Attributes attributes)
Create a new, standalone form element. |
|
| Method Summary | |
|---|---|
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. |
boolean |
equals(Object o)
|
List<Connection.KeyVal> |
formData()
Get the data that this form submits. |
Connection |
submit()
Prepare to submit this form. |
| Methods inherited from class org.jsoup.nodes.Node |
|---|
absUrl, addChildren, addChildren, attr, attributes, baseUri, childNode, childNodes, childNodesAsArray, childNodesCopy, childNodeSize, doClone, hasAttr, indent, nextSibling, outerHtml, outerHtml, ownerDocument, parentNode, previousSibling, remove, removeAttr, removeChild, replaceChild, replaceWith, setBaseUri, setParentNode, setSiblingIndex, siblingIndex, siblingNodes, traverse, unwrap |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FormElement(Tag tag,
String baseUri,
Attributes attributes)
tag - tag of this elementbaseUri - the base URIattributes - initial attributes| Method Detail |
|---|
public Elements elements()
public FormElement addElement(Element element)
element - form control to add
public 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()
public boolean equals(Object o)
equals in class Element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||