|
|||||
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.FocusableHostElement
com.gargoylesoftware.htmlunit.javascript.host.FormField
public class FormField
Base class for all javascript object corresponding to form fields.
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 | |
---|---|
FormField()
|
Method Summary | |
---|---|
void |
jsxFunction_click()
Click this element. |
void |
jsxFunction_select()
Select this element. |
boolean |
jsxGet_disabled()
Return true if this element is disabled. |
HTMLFormElement |
jsxGet_form()
Return the value of the javascript attribute "form". |
java.lang.String |
jsxGet_name()
Return the value of the javascript attribute "name". |
org.mozilla.javascript.Function |
jsxGet_onchange()
Get the onchange event handler for this element. |
java.lang.String |
jsxGet_tabindex()
Return the value of the tabindex attribute. |
java.lang.String |
jsxGet_type()
Return the value of the javascript attribute "type". |
java.lang.String |
jsxGet_value()
Return the value of the javascript attribute "value". |
void |
jsxSet_disabled(boolean disabled)
Set whether or not to disable this element |
void |
jsxSet_name(java.lang.String newName)
Set the value of the javascript attribute "name". |
void |
jsxSet_onchange(java.lang.Object onchange)
Set the onchange event handler for this element. |
void |
jsxSet_value(java.lang.String newValue)
Set the value of the javascript attribute "value". |
void |
setDomNode(DomNode domNode)
Sets the associated dom node and sets the enclosing form as parent scope of the current element |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.FocusableHostElement |
---|
jsxFunction_blur, jsxFunction_focus |
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, setHtmlElement |
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, get, 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, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, has, hasInstance, put, put, setParentScope, setPrototype |
Constructor Detail |
---|
public FormField()
Method Detail |
---|
public void jsxFunction_click() throws java.io.IOException
java.io.IOException
- if this click triggers a page load that encouters problemspublic void jsxFunction_select()
public boolean jsxGet_disabled()
jsxGet_disabled
in class HTMLElement
public HTMLFormElement jsxGet_form()
public java.lang.String jsxGet_name()
public org.mozilla.javascript.Function jsxGet_onchange()
org.mozilla.javascript.Function
public java.lang.String jsxGet_tabindex()
public java.lang.String jsxGet_type()
public java.lang.String jsxGet_value()
public void jsxSet_disabled(boolean disabled)
jsxSet_disabled
in class HTMLElement
disabled
- True if this is to be disabled.public void jsxSet_name(java.lang.String newName)
newName
- The new name.public void jsxSet_onchange(java.lang.Object onchange)
onchange
- the new handlerpublic void jsxSet_value(java.lang.String newValue)
newValue
- The new value.public void setDomNode(DomNode domNode)
setDomNode
in class HTMLElement
domNode
- The DOM nodeSimpleScriptable.setDomNode(DomNode)
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |