public class FormTag extends CompositeTag
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
GET |
The "GET" method.
|
protected java.lang.String |
mFormLocation |
This is the derived form location, based on action.
|
static java.lang.String |
POST |
The "POST" method.
|
children, mPage, nodeBegin, nodeEnd, parentmDefaultCompositeScanner, mEndTagbreakTags, mAttributes, mDefaultScanner| Constructor | Description |
|---|---|
FormTag() |
Create a new form tag.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
extractFormLocn() |
Extract the
ACTION attribute as an absolute URL. |
java.lang.String[] |
getEnders() |
Return the set of tag names that cause this tag to finish.
|
java.lang.String[] |
getEndTagEnders() |
Return the set of end tag names that cause this tag to finish.
|
NodeList |
getFormInputs() |
Get the list of input fields.
|
java.lang.String |
getFormLocation() |
Get the value of the action attribute.
|
java.lang.String |
getFormMethod() |
Returns the method of the form, GET or POST.
|
java.lang.String |
getFormName() |
Get the value of the name attribute.
|
NodeList |
getFormTextareas() |
Get the list of text areas.
|
java.lang.String[] |
getIds() |
Return the set of names handled by this tag.
|
InputTag |
getInputTag(java.lang.String name) |
Get the input tag in the form corresponding to the given name
|
TextareaTag |
getTextAreaTag(java.lang.String name) |
Find the textarea tag matching the given name
|
void |
setFormLocation(java.lang.String url) |
Set the form location.
|
java.lang.String |
toString() |
Return a string representation of the contents of this
FORM tag suitable for debugging. |
clone, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtmlaccept, childAt, children, collectInto, digupStringNode, elements, findPositionOf, findPositionOf, findPositionOf, getChild, getChildCount, getChildrenAsNodeArray, getChildrenHTML, getEndTag, getStringText, getText, putChildrenInto, putEndTagInto, removeChild, searchByName, searchFor, searchFor, searchFor, searchFor, setEndTag, toHtml, toPlainTextString, toStringclone, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtmlequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbreaksFlow, getAttribute, getAttributeEx, getAttributesEx, getEndingLineNumber, getRawTagName, getStartingLineNumber, getTagBegin, getTagEnd, getTagName, getThisScanner, isEmptyXmlTag, isEndTag, removeAttribute, setAttribute, setAttribute, setAttribute, setAttributeEx, setAttributesEx, setEmptyXmlTag, setTagBegin, setTagEnd, setTagName, setText, setThisScannerpublic static final java.lang.String POST
getFormMethod(),
Constant Field Valuespublic static final java.lang.String GET
getFormMethod(),
Constant Field Valuesprotected java.lang.String mFormLocation
public java.lang.String[] getIds()
public java.lang.String[] getEnders()
public java.lang.String[] getEndTagEnders()
getEndTagEnders in interface TaggetEndTagEnders in class TagNodepublic NodeList getFormInputs()
public NodeList getFormTextareas()
public java.lang.String getFormLocation()
public void setFormLocation(java.lang.String url)
url - The new FORM locationpublic java.lang.String getFormMethod()
public InputTag getInputTag(java.lang.String name)
name - The name of the input tag to be retrievedpublic java.lang.String getFormName()
public TextareaTag getTextAreaTag(java.lang.String name)
name - Name of the textarea tag to be found within the form.TEXTAREA tag with the matching name.public java.lang.String toString()
FORM tag suitable for debugging.toString in interface NodetoString in class CompositeTagpublic java.lang.String extractFormLocn()
ACTION attribute as an absolute URL.HTML Parser is an open source library released under LGPL.