|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRhinohide
RhiNamedNodeMap
@ThreadSafe final class RhiNamedNodeMap
A named node map implemented as an overlay of a JavaScript node map.
Field Summary |
---|
Fields inherited from class Rhinohide |
---|
window |
Method Summary | |
---|---|
int |
getLength()
|
Node |
getNamedItem(String name)
|
Node |
getNamedItemNS(String namespaceURI,
String localName)
Untested. |
Node |
item(int index)
|
Node |
removeNamedItem(String name)
Buggy on IE. |
Node |
removeNamedItemNS(String namespaceURI,
String localName)
Untested. |
Node |
setNamedItem(Node arg)
|
Node |
setNamedItemNS(Node arg)
Untested. |
static RhiNamedNodeMap |
wrapNamedNodeMap(RhiWindow window,
netscape.javascript.JSObject jsObject)
Creates a RhiNamedNodeMap. |
Methods inherited from class Rhinohide |
---|
call, callV, checkV, equals, eval, evalV, getMember, getMemberV, hashCode, jsObject, setMember, toJSObject, toString, window |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static RhiNamedNodeMap wrapNamedNodeMap(RhiWindow window, netscape.javascript.JSObject jsObject)
window
- global objectjsObject
- bridge to underlying JavaScript node map,
per jsObject()
public Node getNamedItem(String name)
getNamedItem
in interface NamedNodeMap
public Node setNamedItem(Node arg)
setNamedItem
in interface NamedNodeMap
public Node getNamedItemNS(String namespaceURI, String localName)
getNamedItemNS
in interface NamedNodeMap
public Node setNamedItemNS(Node arg)
setNamedItemNS
in interface NamedNodeMap
public Node item(int index)
item
in interface NamedNodeMap
public int getLength()
getLength
in interface NamedNodeMap
public Node removeNamedItem(String name)
Attribute items are not actually removed, but remain in the map as null values. (Actually IE sets the values of the removed attribute item to an empty string, which is incorrect. We correct it to null, in RhiAttr.wrapAttr, but we don't correct the resulting misbehaviour of the node map.)
removeNamedItem
in interface NamedNodeMap
public Node removeNamedItemNS(String namespaceURI, String localName)
removeNamedItemNS
in interface NamedNodeMap
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |