|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 com.gargoylesoftware.htmlunit.javascript.host.HTMLSelectElement
public class HTMLSelectElement
The javascript object for HtmlSelect
.
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 | |
---|---|
HTMLSelectElement()
Create an instance. |
Method Summary | |
---|---|
java.lang.Object |
get(int index,
org.mozilla.javascript.Scriptable start)
Return the specified indexed property |
void |
initialize()
Initialize the object. |
void |
jsConstructor()
Javascript constructor. |
void |
jsxFunction_add(Option newOptionObject,
java.lang.Object arg2)
Add a new item to the list (optionally) before the specified item |
void |
jsxFunction_remove(int index)
Remove option at the specified index |
int |
jsxGet_length()
Return the value of the "length" property |
HTMLOptionsCollection |
jsxGet_options()
Return the value of the "options" property |
int |
jsxGet_selectedIndex()
Return the value of the "selectedIndex" property |
java.lang.String |
jsxGet_type()
Return the type of this input. |
java.lang.String |
jsxGet_value()
Return the actual value of the selected Option |
void |
jsxSet_length(int newLength)
Remove options by reducing the "length" property |
void |
jsxSet_selectedIndex(int index)
Set the value of the "selectedIndex" property |
void |
jsxSet_value(java.lang.String newValue)
Selects the option with the specified value |
void |
put(int index,
org.mozilla.javascript.Scriptable start,
java.lang.Object newValue)
Set the index property |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.FormField |
---|
jsxFunction_click, jsxFunction_select, jsxGet_disabled, jsxGet_form, jsxGet_name, jsxGet_onchange, jsxGet_tabindex, jsxSet_disabled, jsxSet_name, jsxSet_onchange, setDomNode |
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, 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, 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, setParentScope, setPrototype |
Constructor Detail |
---|
public HTMLSelectElement()
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 void initialize()
public void jsConstructor()
public void jsxFunction_add(Option newOptionObject, java.lang.Object arg2)
newOptionObject
- The DomNode to insertarg2
- for Firefox: the DomNode to insert the previous element before (null if at end),
for Internet Explorer: the index where the element should be placed (optional)public void jsxFunction_remove(int index)
index
- The index of the item to removepublic int jsxGet_length()
public HTMLOptionsCollection jsxGet_options()
public int jsxGet_selectedIndex()
public java.lang.String jsxGet_type()
jsxGet_type
in class FormField
public java.lang.String jsxGet_value()
jsxGet_value
in class FormField
public void jsxSet_length(int newLength)
newLength
- The new length property valuepublic void jsxSet_selectedIndex(int index)
index
- The new valuepublic void jsxSet_value(java.lang.String newValue)
jsxSet_value
in class FormField
newValue
- The value of the option to selectpublic void put(int index, org.mozilla.javascript.Scriptable start, java.lang.Object newValue)
put
in interface org.mozilla.javascript.Scriptable
put
in class org.mozilla.javascript.ScriptableObject
index
- The indexstart
- The scriptable object that was originally invoked for this propertynewValue
- The new value
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |