|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.javascript.host.NodeImpl
com.gargoylesoftware.htmlunit.javascript.host.HTMLElement
com.gargoylesoftware.htmlunit.javascript.host.HTMLFormElement
public class HTMLFormElement
A JavaScript object for a Form.
Field Summary |
---|
Fields inherited from class org.mozilla.javascript.ScriptableObject |
---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
Fields inherited from interface org.mozilla.javascript.Scriptable |
---|
NOT_FOUND |
Constructor Summary | |
---|---|
HTMLFormElement()
Create an instance. |
Method Summary | |
---|---|
java.lang.Object |
get(int index,
org.mozilla.javascript.Scriptable start)
Return the specified indexed property |
void |
jsConstructor()
Javascript constructor. |
void |
jsxFunction_reset()
Reset this form |
void |
jsxFunction_submit()
Submit the form. |
java.lang.String |
jsxGet_action()
Return the value of the javascript attribute "action". |
HTMLCollection |
jsxGet_elements()
Return the value of the javascript attribute "elements". |
java.lang.String |
jsxGet_encoding()
Return the value of the javascript attribute "encoding". |
int |
jsxGet_length()
Return the value of the javascript attribute "length". |
java.lang.String |
jsxGet_method()
Return the value of the javascript attribute "method". |
java.lang.String |
jsxGet_name()
Return the value of the javascript attribute "name". |
java.lang.Object |
jsxGet_onsubmit()
Get the onsubmit event handler for this element. |
java.lang.String |
jsxGet_target()
Return the value of the javascript attribute "target". |
void |
jsxSet_action(java.lang.String action)
Set the value of the javascript attribute "action". |
void |
jsxSet_encoding(java.lang.String encoding)
Set the value of the javascript attribute "encoding". |
void |
jsxSet_method(java.lang.String method)
Set the value of the javascript attribute "method". |
void |
jsxSet_name(java.lang.String name)
Set the value of the javascript attribute "name". |
void |
jsxSet_onsubmit(java.lang.Object onsubmit)
Set the onsubmit event handler for this element. |
void |
jsxSet_target(java.lang.String target)
Set the value of the javascript attribute "target". |
void |
setHtmlElement(HtmlElement htmlElement)
Set the html element that corresponds to this javascript object |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.NodeImpl |
---|
executeEvent, fireEvent, getEventHandler, jsxFunction_addEventListener, jsxFunction_appendChild, jsxFunction_attachEvent, jsxFunction_cloneNode, jsxFunction_detachEvent, jsxFunction_hasChildNodes, jsxFunction_insertBefore, jsxFunction_isSameNode, jsxFunction_removeChild, jsxFunction_removeEventListener, jsxFunction_replaceChild, jsxGet_childNodes, jsxGet_firstChild, jsxGet_lastChild, jsxGet_nextSibling, jsxGet_nodeName, jsxGet_nodeType, jsxGet_nodeValue, jsxGet_parentNode, jsxGet_previousSibling, jsxSet_nodeValue, setEventHandler |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
---|
get, getBooleanArg, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getHtmlElementOrDie, getHtmlElementOrNull, getIntArg, getObjectArg, getStringArg, makeScriptableFor |
Methods inherited from class org.mozilla.javascript.ScriptableObject |
---|
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.mozilla.javascript.Scriptable |
---|
delete, delete, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, has, hasInstance, put, put, setParentScope, setPrototype |
Constructor Detail |
---|
public HTMLFormElement()
Method Detail |
---|
public java.lang.Object get(int index, org.mozilla.javascript.Scriptable start)
get
in interface org.mozilla.javascript.Scriptable
get
in class org.mozilla.javascript.ScriptableObject
index
- The index of the propertystart
- The scriptable object that was originally queried for this property
public final void jsConstructor()
public void jsxFunction_reset()
public void jsxFunction_submit() throws java.io.IOException
java.io.IOException
- if an io error occurspublic java.lang.String jsxGet_action()
public HTMLCollection jsxGet_elements()
public java.lang.String jsxGet_encoding()
public int jsxGet_length()
public java.lang.String jsxGet_method()
public java.lang.String jsxGet_name()
public java.lang.Object jsxGet_onsubmit()
org.mozilla.javascript.Function
public java.lang.String jsxGet_target()
public void jsxSet_action(java.lang.String action)
action
- The new value.public void jsxSet_encoding(java.lang.String encoding)
encoding
- The new value.public void jsxSet_method(java.lang.String method)
method
- The new value.public void jsxSet_name(java.lang.String name)
name
- The new value.public void jsxSet_onsubmit(java.lang.Object onsubmit)
onsubmit
- the new handlerpublic void jsxSet_target(java.lang.String target)
target
- The new value.public void setHtmlElement(HtmlElement htmlElement)
setHtmlElement
in class SimpleScriptable
htmlElement
- The html element
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |