public class HTMLSelectElement extends FormField
HtmlSelect.ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE| Constructor and Description |
|---|
HTMLSelectElement()
Create an instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
add_IE(Option newOptionObject,
Object index)
Add a new item to the list (optionally) at the specified index in IE way
|
protected void |
add(Option newOptionObject,
Object beforeOptionObject)
Add a new item to the list (optionally) before the specified item in Mozilla way
|
protected void |
addBefore(Option 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,
org.mozilla.javascript.Scriptable start)
Return the specified indexed property
|
void |
initialize()
Initialize the object.
|
void |
jsConstructor()
Javascript constructor.
|
void |
jsxFunction_add(Option newOptionObject,
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
|
int |
jsxGet_size()
Returns the size attribute.
|
String |
jsxGet_type()
Return the type of this input.
|
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_size(String size)
Sets the size attribute.
|
void |
jsxSet_value(String newValue)
Selects the option with the specified value
|
void |
put(int index,
org.mozilla.javascript.Scriptable start,
Object newValue)
Set the index property
|
jsxFunction_click, jsxFunction_select, jsxGet_disabled, jsxGet_form, jsxGet_name, jsxGet_onchange, jsxGet_tabindex, jsxSet_disabled, jsxSet_name, jsxSet_onchange, setDomNodeaddComponentRequest, clearComponentRequest, compareVersions, doComponentRequest, getAvailHeight, getAvailWidth, getBoxObject, getBufferDepth, getColorDepth, getComponentVersion, getConnectionType, getCookieEnabled, getCpuClass, getHeight, getHtmlElementOrDie, getHtmlElementOrNull, getJavaEnabled, getPlatform, getSystemLanguage, getUserLanguage, getWidth, getWithFallback, isComponentInstalled, isHomePage, jsxFunction_addBehavior, jsxFunction_blur, jsxFunction_dispatchEvent, jsxFunction_fireEvent, jsxFunction_focus, jsxFunction_getAttribute, jsxFunction_getAttributeNode, jsxFunction_getAttributeNS, jsxFunction_getBoundingClientRect, jsxFunction_getClientRects, jsxFunction_getElementsByTagName, jsxFunction_hasAttribute, jsxFunction_hasAttributeNS, jsxFunction_insertAdjacentElement, jsxFunction_insertAdjacentHTML, jsxFunction_removeAttribute, jsxFunction_removeBehavior, jsxFunction_removeExpression, jsxFunction_scrollIntoView, jsxFunction_setAttribute, jsxFunction_setAttributeNode, jsxFunction_setAttributeNS, jsxFunction_setExpression, jsxGet_all, jsxGet_attributes, jsxGet_children, jsxGet_className, jsxGet_currentStyle, jsxGet_id, jsxGet_innerHTML, jsxGet_innerText, jsxGet_localName, jsxGet_namespaceURI, jsxGet_offsetHeight, jsxGet_offsetLeft, jsxGet_offsetParent, jsxGet_offsetTop, jsxGet_offsetWidth, jsxGet_onblur, jsxGet_onclick, jsxGet_oncontextmenu, jsxGet_ondblclick, jsxGet_onfocus, jsxGet_onkeydown, jsxGet_onkeypress, jsxGet_onkeyup, jsxGet_onmousedown, jsxGet_onmousemove, jsxGet_onmouseout, jsxGet_onmouseover, jsxGet_onmouseup, jsxGet_onresize, jsxGet_outerHTML, jsxGet_ownerDocument, jsxGet_parentElement, jsxGet_prefix, jsxGet_runtimeStyle, jsxGet_scrollHeight, jsxGet_scrollLeft, jsxGet_scrollTop, jsxGet_scrollWidth, jsxGet_style, jsxGet_tagName, jsxGet_title, jsxGet_uniqueID, jsxSet_className, jsxSet_id, jsxSet_innerHTML, jsxSet_innerText, jsxSet_onblur, jsxSet_onclick, jsxSet_oncontextmenu, jsxSet_ondblclick, jsxSet_onfocus, jsxSet_onkeydown, jsxSet_onkeypress, jsxSet_onkeyup, jsxSet_onmousedown, jsxSet_onmousemove, jsxSet_onmouseout, jsxSet_onmouseover, jsxSet_onmouseup, jsxSet_onresize, jsxSet_outerHTML, jsxSet_scrollLeft, jsxSet_scrollTop, jsxSet_title, navigateHomePage, readAttributes, setHomePage, startDownload, toStringexecuteEvent, fireEvent, getEventHandler, getEventHandlerProp, getJavaScriptNode, 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, setEventHandlerPropget, getBooleanArg, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getIntArg, getLog, getObjectArg, getPrototype, getScriptableFor, getStartingScope, getStringArg, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, makeScriptableFor, setDomNode, setHtmlElementassociateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, 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, setPrototypepublic void jsConstructor()
public void initialize()
public void jsxFunction_remove(int index)
index - The index of the item to removepublic void jsxFunction_add(Option 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)protected void add_IE(Option newOptionObject, Object index)
newOptionObject - The DomNode to insertindex - (optional) the index where the node should be insertedprotected void add(Option newOptionObject, Object beforeOptionObject)
newOptionObject - The DomNode to insertbeforeOptionObject - The DomNode to insert the previous element before (null if at end)protected void addBefore(Option 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 FormFieldpublic HTMLOptionsCollection jsxGet_options()
public int jsxGet_selectedIndex()
public void jsxSet_selectedIndex(int index)
index - The new valuepublic String jsxGet_value()
jsxGet_value in class FormFieldpublic int jsxGet_length()
public void jsxSet_length(int newLength)
newLength - The new length property valuepublic Object get(int index, org.mozilla.javascript.Scriptable start)
get in interface org.mozilla.javascript.Scriptableget in class org.mozilla.javascript.ScriptableObjectindex - The index of the propertystart - The scriptable object that was originally queried for this propertypublic void put(int index,
org.mozilla.javascript.Scriptable start,
Object newValue)
put in interface org.mozilla.javascript.Scriptableput in class org.mozilla.javascript.ScriptableObjectindex - The indexstart - The scriptable object that was originally invoked for this propertynewValue - The new valuepublic void jsxSet_value(String newValue)
jsxSet_value in class FormFieldnewValue - The value of the option to selectpublic int jsxGet_size()
public void jsxSet_size(String size)
size - The size attribute.Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.