|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.html.DomNode
com.gargoylesoftware.htmlunit.html.DomNamespaceNode
com.gargoylesoftware.htmlunit.html.HtmlElement
com.gargoylesoftware.htmlunit.html.StyledElement
com.gargoylesoftware.htmlunit.html.ClickableElement
com.gargoylesoftware.htmlunit.html.HtmlForm
public class HtmlForm
Wrapper for the html element "form"
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement |
---|
HtmlElement.MapEntryWrappingIterator |
Field Summary | |
---|---|
static java.lang.String |
TAG_NAME
the HTML tag represented by this element |
Fields inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement |
---|
ATTRIBUTE_NOT_DEFINED, ATTRIBUTE_VALUE_EMPTY |
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED |
Method Summary | |
---|---|
java.lang.String |
getAcceptAttribute()
Return the value of the attribute "accept". |
java.lang.String |
getAcceptCharsetAttribute()
Return the value of the attribute "accept-charset". |
java.lang.String |
getActionAttribute()
Return the value of the attribute "action". |
HtmlButton |
getButtonByName(java.lang.String name)
Find the first button element with the specified name. |
java.util.List |
getButtonsByName(java.lang.String name)
Return all the HtmlButtons that match the specified name |
HtmlRadioButtonInput |
getCheckedRadioButton(java.lang.String name)
Return the first checked radio button with the specified name. |
java.lang.String |
getEnctypeAttribute()
Return the value of the attribute "enctype". |
HtmlInput |
getInputByName(java.lang.String name)
Return the first input with the specified name |
HtmlInput |
getInputByValue(java.lang.String value)
Return the first input with the specified value. |
java.util.List |
getInputsByName(java.lang.String name)
Return the input tags that have the specified name |
java.util.List |
getInputsByValue(java.lang.String value)
Return all the inputs with the specified value. |
java.lang.String |
getMethodAttribute()
Return the value of the attribute "method". |
java.lang.String |
getNameAttribute()
Return the value of the attribute "name". |
java.lang.String |
getOnResetAttribute()
Return the value of the attribute "onreset". |
java.lang.String |
getOnSubmitAttribute()
Return the value of the attribute "onsubmit". |
java.util.List |
getParameterListForSubmit(SubmittableElement submitElement)
Return a list of KeyValuePair s that represent the data that will be
sent to the server on a form submit. |
java.util.List |
getRadioButtonsByName(java.lang.String name)
Return a list of HtmlInputs that are of type radio and match the specified name |
HtmlSelect |
getSelectByName(java.lang.String name)
Find the first select element with the specified name |
java.util.List |
getSelectsByName(java.lang.String name)
Return all the HtmlSelect that match the specified name |
java.util.Collection |
getSubmittableElements(SubmittableElement submitElement)
Return a collection of elements that represent all the "submittable" elements in this form |
java.lang.String |
getTargetAttribute()
Return the value of the attribute "target". |
HtmlTextArea |
getTextAreaByName(java.lang.String name)
Find the first textarea element with the specified name. |
java.util.List |
getTextAreasByName(java.lang.String name)
Return all the HtmlTextAreas that match the specified name |
Page |
reset()
Reset this form to its initial values. |
void |
setActionAttribute(java.lang.String action)
Set the value of the attribute "action". |
void |
setEnctypeAttribute(java.lang.String encoding)
Set the value of the attribute "enctype". |
void |
setMethodAttribute(java.lang.String method)
Set the value of the attribute "method". |
void |
setNameAttribute(java.lang.String name)
Set the value of the attribute "name". |
void |
setTargetAttribute(java.lang.String target)
Set the value of the attribute "target". |
Page |
submit(SubmittableElement submitElement)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. |
Methods inherited from class com.gargoylesoftware.htmlunit.html.ClickableElement |
---|
click, click, dblClick, dblClick, getLangAttribute, getOnClickAttribute, getOnDblClickAttribute, getOnKeyDownAttribute, getOnKeyPressAttribute, getOnKeyUpAttribute, getOnMouseDownAttribute, getOnMouseMoveAttribute, getOnMouseOutAttribute, getOnMouseOverAttribute, getOnMouseUpAttribute, getTextDirectionAttribute, getXmlLangAttribute |
Methods inherited from class com.gargoylesoftware.htmlunit.html.StyledElement |
---|
getClassAttribute, getIdAttribute, getStyleAttribute, getTitleAttribute |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNamespaceNode |
---|
getLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefix |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
addDomChangeListener, appendDomChild, asText, asXml, getAllHtmlChildElements, getByXPath, getChildIterator, getEndColumnNumber, getEndLineNumber, getFirstDomChild, getLastDomChild, getNextDomSibling, getNodeValue, getPage, getParentDomNode, getPreviousDomSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, insertBefore, remove, removeAllChildren, removeDomChangeListener, replace, setNodeValue, setReadyState, setScriptObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TAG_NAME
Method Detail |
---|
public final java.lang.String getAcceptAttribute()
public final java.lang.String getAcceptCharsetAttribute()
public final java.lang.String getActionAttribute()
public HtmlButton getButtonByName(java.lang.String name) throws ElementNotFoundException
name
- The name of the button element.
ElementNotFoundException
- If the button cannot be found.public java.util.List getButtonsByName(java.lang.String name) throws ElementNotFoundException
name
- The name
ElementNotFoundException
- If no matching buttons were foundpublic HtmlRadioButtonInput getCheckedRadioButton(java.lang.String name)
name
- The name of the radio button
public final java.lang.String getEnctypeAttribute()
Enctype is the encoding type used when submitting a form back to the server
public final HtmlInput getInputByName(java.lang.String name) throws ElementNotFoundException
name
- The name of the input
ElementNotFoundException
- If no inputs could be found with the specified name.public HtmlInput getInputByValue(java.lang.String value) throws ElementNotFoundException
value
- The value
ElementNotFoundException
- If no elements can be found with the specified value.public java.util.List getInputsByName(java.lang.String name)
name
- The name of the input
public java.util.List getInputsByValue(java.lang.String value)
value
- The value
public final java.lang.String getMethodAttribute()
public final java.lang.String getNameAttribute()
public final java.lang.String getOnResetAttribute()
public final java.lang.String getOnSubmitAttribute()
public final java.util.List getParameterListForSubmit(SubmittableElement submitElement)
KeyValuePair
s that represent the data that will be
sent to the server on a form submit. This is primarily intended to aid
debugging.
submitElement
- The element that would have been pressed to submit the
form or null if the form was submitted by javascript.
KeyValuePair
s.public java.util.List getRadioButtonsByName(java.lang.String name)
name
- The name
public HtmlSelect getSelectByName(java.lang.String name) throws ElementNotFoundException
name
- The name of the select element
ElementNotFoundException
- If the select cannot be found.public java.util.List getSelectsByName(java.lang.String name)
name
- The name
public java.util.Collection getSubmittableElements(SubmittableElement submitElement)
submitElement
- The element that would have been pressed to submit the
form or null if the form was submitted by javascript.
public final java.lang.String getTargetAttribute()
public HtmlTextArea getTextAreaByName(java.lang.String name) throws ElementNotFoundException
name
- The name of the textarea element.
ElementNotFoundException
- If the textarea cannot be found.public java.util.List getTextAreasByName(java.lang.String name)
name
- The name
public Page reset()
public final void setActionAttribute(java.lang.String action)
action
- The value of the attribute "action"public final void setEnctypeAttribute(java.lang.String encoding)
Enctype is the encoding type used when submitting a form back to the server
encoding
- The value of the attribute "enctype" or an empty string if that
attribute isn't defined.public final void setMethodAttribute(java.lang.String method)
method
- The value of the attribute "method" or an empty string if that
attribute isn't defined.public final void setNameAttribute(java.lang.String name)
name
- the new valuepublic final void setTargetAttribute(java.lang.String target)
target
- The value of the attribute "target" or an empty string if that
attribute isn't defined.public Page submit(SubmittableElement submitElement) throws java.io.IOException
submitElement
- The element that caused the submit to occur
java.io.IOException
- If an IO error occurs
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |