public class NamedNodeMap extends SimpleScriptable implements ScriptableWithFallbackGetter
Constructor and Description |
---|
NamedNodeMap()
Rhino requires default constructors.
|
NamedNodeMap(HtmlElement element)
Creates a new named node map for the specified element.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(int index,
org.mozilla.javascript.Scriptable start)
Returns the element at the specified index, or NOT_FOUND if the index is invalid.
|
Object |
getWithFallback(String name)
Returns the element with the specified name, or NOT_FOUND if the name is invalid.
|
Object |
jsxFunction_getNamedItem(String name)
Gets the specified attribute.
|
int |
jsxGet_length()
Returns the number of attributes in this named node map.
|
get, getBooleanArg, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getIntArg, getLog, getObjectArg, getPrototype, getScriptableFor, getStartingScope, getStringArg, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, makeScriptableFor, setDomNode, setDomNode, setHtmlElement
associateValue, 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, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype
public NamedNodeMap()
public NamedNodeMap(HtmlElement element)
element
- the owning elementpublic final Object get(int index, org.mozilla.javascript.Scriptable start)
get
in interface org.mozilla.javascript.Scriptable
get
in class org.mozilla.javascript.ScriptableObject
public Object getWithFallback(String name)
Scriptable
object.getWithFallback
in interface ScriptableWithFallbackGetter
name
- the name of the requested propertyScriptable.NOT_FOUND
if nothing is foundpublic Object jsxFunction_getNamedItem(String name)
name
- attribute name.null
if the attribute is not definedpublic int jsxGet_length()
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.