com.meterware.httpunit.dom
Class HTMLSelectElementImpl

java.lang.Object
  extended by org.mozilla.javascript.ScriptableObject
      extended by com.meterware.httpunit.javascript.ScriptingEngineImpl
          extended by com.meterware.httpunit.dom.AbstractDomComponent
              extended by com.meterware.httpunit.dom.NodeImpl
                  extended by com.meterware.httpunit.dom.NamespaceAwareNodeImpl
                      extended by com.meterware.httpunit.dom.ElementImpl
                          extended by com.meterware.httpunit.dom.HTMLElementImpl
                              extended by com.meterware.httpunit.dom.HTMLControl
                                  extended by com.meterware.httpunit.dom.HTMLSelectElementImpl
All Implemented Interfaces:
ScriptingEngine, ScriptingEventHandler, ScriptingHandler, java.io.Serializable, org.mozilla.javascript.ConstProperties, org.mozilla.javascript.debug.DebuggableObject, org.mozilla.javascript.Scriptable, org.w3c.dom.Element, org.w3c.dom.html.HTMLElement, org.w3c.dom.html.HTMLSelectElement, org.w3c.dom.Node

public class HTMLSelectElementImpl
extends HTMLControl
implements org.w3c.dom.html.HTMLSelectElement

Author:
Russell Gold
See Also:
Serialized Form

Field Summary
static java.lang.String TYPE_SELECT_MULTIPLE
           
static java.lang.String TYPE_SELECT_ONE
           
 
Fields inherited from class com.meterware.httpunit.dom.HTMLElementImpl
UNSPECIFIED_ATTRIBUTE
 
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 
Fields inherited from interface org.w3c.dom.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 interface org.mozilla.javascript.Scriptable
NOT_FOUND
 
Constructor Summary
HTMLSelectElementImpl()
           
 
Method Summary
 void add(org.w3c.dom.html.HTMLElement element, org.w3c.dom.html.HTMLElement before)
           
 void blur()
          simulate blur
 void focus()
          simulate focus;
 int getLength()
           
 boolean getMultiple()
           
 org.w3c.dom.html.HTMLCollection getOptions()
           
 int getSelectedIndex()
           
 int getSize()
           
 java.lang.String getType()
           
 java.lang.String getValue()
           
 void remove(int index)
           
 void reset()
           
 void setMultiple(boolean multiple)
           
 void setSelectedIndex(int selectedIndex)
           
 void setSize(int size)
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class com.meterware.httpunit.dom.HTMLControl
getDisabled, getForm, getName, getReadOnly, getTabIndex, setDisabled, setName, setReadOnly, setTabIndex, silenceSubmitButton
 
Methods inherited from class com.meterware.httpunit.dom.HTMLElementImpl
click, doClickAction, getAttributeWithDefault, getAttributeWithNoDefault, getBooleanAttribute, getClassName, getDir, getElementsByTagName, getId, getIntegerAttribute, getIntegerAttribute, getLang, getTitle, setAttribute, setAttribute, setClassName, setDir, setId, setLang, setTitle
 
Methods inherited from class com.meterware.httpunit.dom.ElementImpl
addDomListener, createElement, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getElementsByTagNameNS, getNodeType, getNodeValue, getSchemaTypeInfo, handleEvent, hasAttribute, hasAttributeNS, hasAttributes, importNode, removeAttribute, removeAttributeNode, removeAttributeNS, reportPropertyChanged, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS, setNodeValue
 
Methods inherited from class com.meterware.httpunit.dom.NamespaceAwareNodeImpl
getLocalName, getNamespaceURI, getNodeName, getTagName, initialize, initialize
 
Methods inherited from class com.meterware.httpunit.dom.NodeImpl
appendChild, cloneNode, compareDocumentPosition, getBaseURI, getChildIfPermitted, getChildNodes, getElementsByTagNames, getFeature, getFirstChild, getJavaPropertyName, getLastChild, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, initialize, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, preOrderIterator, preOrderIterator, preOrderIteratorAfterNode, preOrderIteratorAfterNode, removeChild, replaceChild, setPrefix, setTextContent, setUserData
 
Methods inherited from class com.meterware.httpunit.dom.AbstractDomComponent
clearCaches, createAnonymousFunctionName, get, has, newScriptingEngine, put
 
Methods inherited from class com.meterware.httpunit.javascript.ScriptingEngineImpl
clearErrorMessages, discardDocumentWriteBuffer, doEvent, doEventScript, evaluateExpression, getDocumentWriteBuffer, getErrorMessages, handleScriptException, runScript, supportsScriptLanguage
 
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, equivalentValues, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, hasInstance, hasProperty, hasProperty, isConst, isGetterOrSetter, isSealed, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.html.HTMLSelectElement
getDisabled, getForm, getName, getTabIndex, setDisabled, setName, setTabIndex
 
Methods inherited from interface org.w3c.dom.html.HTMLElement
getClassName, getDir, getId, getLang, getTitle, setClassName, setDir, setId, setLang, setTitle
 
Methods inherited from interface org.w3c.dom.Element
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNS
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from interface org.mozilla.javascript.Scriptable
delete, delete, get, getDefaultValue, getIds, getParentScope, getPrototype, has, hasInstance, put, setParentScope, setPrototype
 

Field Detail

TYPE_SELECT_ONE

public static final java.lang.String TYPE_SELECT_ONE
See Also:
Constant Field Values

TYPE_SELECT_MULTIPLE

public static final java.lang.String TYPE_SELECT_MULTIPLE
See Also:
Constant Field Values
Constructor Detail

HTMLSelectElementImpl

public HTMLSelectElementImpl()
Method Detail

add

public void add(org.w3c.dom.html.HTMLElement element,
                org.w3c.dom.html.HTMLElement before)
         throws org.w3c.dom.DOMException
Specified by:
add in interface org.w3c.dom.html.HTMLSelectElement
Throws:
org.w3c.dom.DOMException

blur

public void blur()
simulate blur

Specified by:
blur in interface org.w3c.dom.html.HTMLSelectElement

focus

public void focus()
simulate focus;

Specified by:
focus in interface org.w3c.dom.html.HTMLSelectElement

getType

public java.lang.String getType()
Specified by:
getType in interface org.w3c.dom.html.HTMLSelectElement
Overrides:
getType in class HTMLControl

getLength

public int getLength()
Specified by:
getLength in interface org.w3c.dom.html.HTMLSelectElement

getMultiple

public boolean getMultiple()
Specified by:
getMultiple in interface org.w3c.dom.html.HTMLSelectElement

getOptions

public org.w3c.dom.html.HTMLCollection getOptions()
Specified by:
getOptions in interface org.w3c.dom.html.HTMLSelectElement

getSelectedIndex

public int getSelectedIndex()
Specified by:
getSelectedIndex in interface org.w3c.dom.html.HTMLSelectElement

getValue

public java.lang.String getValue()
Specified by:
getValue in interface org.w3c.dom.html.HTMLSelectElement

getSize

public int getSize()
Specified by:
getSize in interface org.w3c.dom.html.HTMLSelectElement

remove

public void remove(int index)
Specified by:
remove in interface org.w3c.dom.html.HTMLSelectElement

setMultiple

public void setMultiple(boolean multiple)
Specified by:
setMultiple in interface org.w3c.dom.html.HTMLSelectElement

setSelectedIndex

public void setSelectedIndex(int selectedIndex)
Specified by:
setSelectedIndex in interface org.w3c.dom.html.HTMLSelectElement

setSize

public void setSize(int size)
Specified by:
setSize in interface org.w3c.dom.html.HTMLSelectElement

setValue

public void setValue(java.lang.String value)
Specified by:
setValue in interface org.w3c.dom.html.HTMLSelectElement

reset

public void reset()
Overrides:
reset in class HTMLControl


Copyright © 2011. All Rights Reserved.