|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mozilla.javascript.ScriptableObject
com.meterware.httpunit.javascript.ScriptingEngineImpl
com.meterware.httpunit.dom.AbstractDomComponent
com.meterware.httpunit.dom.NodeImpl
com.meterware.httpunit.dom.NamespaceAwareNodeImpl
com.meterware.httpunit.dom.ElementImpl
com.meterware.httpunit.dom.HTMLElementImpl
public class HTMLElementImpl
Field Summary | |
---|---|
static java.lang.String |
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 | |
---|---|
HTMLElementImpl()
|
Method Summary | |
---|---|
void |
click()
|
void |
doClickAction()
|
protected java.lang.String |
getAttributeWithDefault(java.lang.String attributeName,
java.lang.String defaultValue)
|
protected java.lang.String |
getAttributeWithNoDefault(java.lang.String attributeName)
|
protected boolean |
getBooleanAttribute(java.lang.String name)
|
java.lang.String |
getClassName()
|
java.lang.String |
getDir()
|
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String name)
|
java.lang.String |
getId()
|
protected int |
getIntegerAttribute(java.lang.String name)
|
protected int |
getIntegerAttribute(java.lang.String name,
int defaultValue)
|
java.lang.String |
getLang()
|
java.lang.String |
getTitle()
|
protected void |
setAttribute(java.lang.String name,
boolean disabled)
|
protected void |
setAttribute(java.lang.String name,
int value)
|
void |
setClassName(java.lang.String className)
|
void |
setDir(java.lang.String dir)
|
void |
setId(java.lang.String id)
|
void |
setLang(java.lang.String lang)
|
void |
setTitle(java.lang.String title)
|
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.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.Element |
---|
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, 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 |
---|
public static final java.lang.String UNSPECIFIED_ATTRIBUTE
Constructor Detail |
---|
public HTMLElementImpl()
Method Detail |
---|
public void click()
public void doClickAction()
public java.lang.String getId()
getId
in interface org.w3c.dom.html.HTMLElement
public void setId(java.lang.String id)
setId
in interface org.w3c.dom.html.HTMLElement
public java.lang.String getTitle()
getTitle
in interface org.w3c.dom.html.HTMLElement
public void setTitle(java.lang.String title)
setTitle
in interface org.w3c.dom.html.HTMLElement
public java.lang.String getLang()
getLang
in interface org.w3c.dom.html.HTMLElement
public void setLang(java.lang.String lang)
setLang
in interface org.w3c.dom.html.HTMLElement
public java.lang.String getDir()
getDir
in interface org.w3c.dom.html.HTMLElement
public void setDir(java.lang.String dir)
setDir
in interface org.w3c.dom.html.HTMLElement
public java.lang.String getClassName()
getClassName
in interface org.mozilla.javascript.Scriptable
getClassName
in interface org.w3c.dom.html.HTMLElement
getClassName
in class AbstractDomComponent
public void setClassName(java.lang.String className)
setClassName
in interface org.w3c.dom.html.HTMLElement
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String name)
getElementsByTagName
in interface org.w3c.dom.Element
getElementsByTagName
in class NodeImpl
protected final java.lang.String getAttributeWithDefault(java.lang.String attributeName, java.lang.String defaultValue)
protected final java.lang.String getAttributeWithNoDefault(java.lang.String attributeName)
protected boolean getBooleanAttribute(java.lang.String name)
protected int getIntegerAttribute(java.lang.String name)
protected int getIntegerAttribute(java.lang.String name, int defaultValue)
protected void setAttribute(java.lang.String name, boolean disabled)
protected void setAttribute(java.lang.String name, int value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |