|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.ScriptableObject
com.gargoylesoftware.htmlunit.javascript.SimpleScriptable
com.gargoylesoftware.htmlunit.javascript.host.Node
com.gargoylesoftware.htmlunit.javascript.host.EventNode
com.gargoylesoftware.htmlunit.javascript.host.Element
com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement
com.gargoylesoftware.htmlunit.javascript.host.FormChild
com.gargoylesoftware.htmlunit.javascript.host.FormField
com.gargoylesoftware.htmlunit.javascript.host.html.HTMLSelectElement
public class HTMLSelectElement
The JavaScript object for HtmlSelect
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement |
---|
HTMLElement.ProxyDomNode |
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement |
---|
BEHAVIOR_ID_CLIENT_CAPS, BEHAVIOR_ID_DOWNLOAD, BEHAVIOR_ID_HOMEPAGE |
Fields inherited from class com.gargoylesoftware.htmlunit.javascript.host.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Fields inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
Fields inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
---|
NOT_FOUND |
Constructor Summary | |
---|---|
HTMLSelectElement()
Creates an instance. |
Method Summary | |
---|---|
protected void |
add_IE(HTMLOptionElement newOptionObject,
Object index)
Adds a new item to the list (optionally) at the specified index in IE way. |
protected void |
add(HTMLOptionElement newOptionObject,
Object beforeOptionObject)
Adds a new item to the list (optionally) before the specified item in Mozilla way. |
protected void |
addBefore(HTMLOptionElement newOptionObject,
HtmlOption beforeOption)
Adds the option (and create the associated DOM node if needed) before the specified one or at the end if the specified one in null. |
Object |
get(int index,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
Returns the specified indexed property. |
void |
initialize()
Initialize the object. |
void |
jsConstructor()
JavaScript constructor. |
void |
jsxFunction_add(HTMLOptionElement newOptionObject,
Object arg2)
Adds a new item to the list (optionally) before the specified item. |
Object |
jsxFunction_appendChild(Object childObject)
Adds a DOM node to the node. |
Object |
jsxFunction_insertBefore(Object[] args)
Add a DOM node as a child to this node before the referenced node. |
void |
jsxFunction_remove(int index)
Removes option at the specified index. |
int |
jsxGet_length()
Returns the value of the "length" property. |
boolean |
jsxGet_multiple()
Returns true if the multiple attribute is set. |
HTMLOptionsCollection |
jsxGet_options()
Returns the value of the "options" property. |
int |
jsxGet_selectedIndex()
Returns the value of the "selectedIndex" property. |
int |
jsxGet_size()
Returns the size attribute. |
String |
jsxGet_type()
Returns the type of this input. |
String |
jsxGet_value()
Returns the actual value of the selected Option. |
void |
jsxSet_length(int newLength)
Removes options by reducing the "length" property. |
void |
jsxSet_multiple(boolean multiple)
Sets or clears the multiple attribute. |
void |
jsxSet_selectedIndex(int index)
Sets the value of the "selectedIndex" property. |
void |
jsxSet_size(String size)
Sets the size attribute. |
void |
jsxSet_value(String newValue)
Selects the option with the specified value. |
void |
put(int index,
net.sourceforge.htmlunit.corejs.javascript.Scriptable start,
Object newValue)
Sets the index property. |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.FormField |
---|
jsxGet_name, jsxGet_onchange, jsxSet_name, jsxSet_onchange, setDomNode |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.FormChild |
---|
jsxGet_form |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.host.Element |
---|
createAttributesObject, jsxFunction_getAttribute, jsxFunction_getElementsByTagNameNS, jsxFunction_hasAttribute, jsxFunction_removeAttribute, jsxFunction_selectNodes, jsxFunction_selectSingleNode, jsxGet_attributes, jsxGet_tagName, jsxGet_text |
Methods inherited from class com.gargoylesoftware.htmlunit.javascript.SimpleScriptable |
---|
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, makeScriptableFor, setCaseSensitive, setDomNode, setHtmlElement |
Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject |
---|
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, clear, containsKey, containsValue, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, entrySet, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, keySet, preventExtensions, put, put, putAll, putConst, putConstProperty, putProperty, putProperty, redefineProperty, remove, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype, size, values |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sourceforge.htmlunit.corejs.javascript.Scriptable |
---|
delete, delete, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, has, hasInstance, put, setParentScope, setPrototype |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public HTMLSelectElement()
Method Detail |
---|
public void jsConstructor()
public void initialize()
public void jsxFunction_remove(int index)
index
- the index of the item to removepublic void jsxFunction_add(HTMLOptionElement newOptionObject, 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 Object jsxFunction_appendChild(Object childObject)
jsxFunction_appendChild
in class Node
childObject
- the node to add to this node
public Object jsxFunction_insertBefore(Object[] args)
jsxFunction_insertBefore
in class Node
args
- the arguments
protected void add_IE(HTMLOptionElement newOptionObject, Object index)
newOptionObject
- the DomNode to insertindex
- (optional) the index where the node should be insertedprotected void add(HTMLOptionElement newOptionObject, Object beforeOptionObject)
newOptionObject
- the DomNode to insertbeforeOptionObject
- the DomNode to insert the previous element before (null if at end)protected void addBefore(HTMLOptionElement newOptionObject, HtmlOption beforeOption)
newOptionObject
- the new option to addbeforeOption
- the option that should be after the option to addpublic String jsxGet_type()
jsxGet_type
in class FormField
public HTMLOptionsCollection jsxGet_options()
public int jsxGet_selectedIndex()
public void jsxSet_selectedIndex(int index)
index
- the new valuepublic String jsxGet_value()
jsxGet_value
in class FormField
public int jsxGet_length()
public void jsxSet_length(int newLength)
newLength
- the new length property valuepublic Object get(int index, net.sourceforge.htmlunit.corejs.javascript.Scriptable start)
get
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
get
in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
index
- the index of the propertystart
- the scriptable object that was originally queried for this property
public void put(int index, net.sourceforge.htmlunit.corejs.javascript.Scriptable start, Object newValue)
put
in interface net.sourceforge.htmlunit.corejs.javascript.Scriptable
put
in class net.sourceforge.htmlunit.corejs.javascript.ScriptableObject
index
- the indexstart
- the scriptable object that was originally invoked for this propertynewValue
- the new valuepublic void jsxSet_value(String newValue)
jsxSet_value
in class FormField
newValue
- the value of the option to selectpublic int jsxGet_size()
public void jsxSet_size(String size)
size
- the size attributepublic boolean jsxGet_multiple()
public void jsxSet_multiple(boolean multiple)
multiple
- true to set the multiple attribute, false to clear it
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |