textbender.o.rhinohide.core
Class RhiElement

java.lang.Object
  extended by Rhinohide
      extended by RhiEventTarget
          extended by RhiNode
              extended by RhiElement
All Implemented Interfaces:
Element, EventTarget, Node
Direct Known Subclasses:
RhiHTMLElement

@ThreadSafe
public class RhiElement
extends RhiNode
implements Element

An element implemented as an overlay of a JavaScript element.


Field Summary
 
Fields inherited from class Rhinohide
window
 
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
 
Constructor Summary
protected RhiElement(RhiWindow window, netscape.javascript.JSObject jsObject)
           
 
Method Summary
 String getAttribute(String name)
           
 Attr getAttributeNode(String name)
           
 Attr getAttributeNodeNS(String namespaceURI, String localName)
          Untested.
 String getAttributeNS(String namespaceURI, String localName)
           
 NodeList getElementsByTagName(String name)
           
 NodeList getElementsByTagNameNS(String namespaceURI, String localName)
          Untested.
 String getLocalName()
           
 TypeInfo getSchemaTypeInfo()
          Not yet coded.
 String getTagName()
           
 boolean hasAttribute(String name)
          Not yet coded.
 boolean hasAttributeNS(String namespaceURI, String localName)
          Not yet coded.
 void removeAttribute(String name)
           
 Attr removeAttributeNode(Attr oldAttr)
           
 void removeAttributeNS(String namespaceURI, String localName)
          Untested.
 void setAttribute(String name, String value)
           
 Attr setAttributeNode(Attr newAttr)
           
 Attr setAttributeNodeNS(Attr newAttr)
          Untested.
 void setAttributeNS(String namespaceURI, String qualifiedName, String value)
           
 void setIdAttribute(String name, boolean isId)
          Not yet coded.
 void setIdAttributeNode(Attr idAttr, boolean isId)
          Not yet coded.
 void setIdAttributeNS(String namespaceURI, String localName, boolean isId)
          Not yet coded.
static RhiElement wrapElement(RhiWindow window, netscape.javascript.JSObject jsObject)
          Creates a RhiElement.
(package private) static RhiElement wrapElement(RhiWindow window, netscape.javascript.JSObject jsObject, boolean doTypeCheck)
           
 
Methods inherited from class RhiNode
appendChild, cloneNode, compareDocumentPosition, ensureNodeType, equals, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, hashCode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, wrapNode, wrapNode
 
Methods inherited from class RhiEventTarget
addEventListener, dispatchEvent, removeEventListener, wrapEventTarget
 
Methods inherited from class Rhinohide
call, callV, checkV, eval, evalV, getMember, getMemberV, jsObject, setMember, toJSObject, toString, window
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, 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
 

Constructor Detail

RhiElement

protected RhiElement(RhiWindow window,
                     netscape.javascript.JSObject jsObject)
Method Detail

wrapElement

public static RhiElement wrapElement(RhiWindow window,
                                     netscape.javascript.JSObject jsObject)
Creates a RhiElement.

Parameters:
window - global object
jsObject - bridge to underlying JavaScript element, per jsObject()
Returns:
element, or null if jsObject is null
Throws:
IllegalArgumentException - if jsObject is neither null nor an element

wrapElement

static RhiElement wrapElement(RhiWindow window,
                              netscape.javascript.JSObject jsObject,
                              boolean doTypeCheck)

getAttribute

public final String getAttribute(String name)
Specified by:
getAttribute in interface Element

getAttributeNS

public final String getAttributeNS(String namespaceURI,
                                   String localName)
Specified by:
getAttributeNS in interface Element

setAttribute

public final void setAttribute(String name,
                               String value)
Specified by:
setAttribute in interface Element

setAttributeNS

public final void setAttributeNS(String namespaceURI,
                                 String qualifiedName,
                                 String value)
Specified by:
setAttributeNS in interface Element

getAttributeNode

public final Attr getAttributeNode(String name)
Specified by:
getAttributeNode in interface Element

setAttributeNode

public final Attr setAttributeNode(Attr newAttr)
Specified by:
setAttributeNode in interface Element

getAttributeNodeNS

public final Attr getAttributeNodeNS(String namespaceURI,
                                     String localName)
Untested.

Specified by:
getAttributeNodeNS in interface Element

setAttributeNodeNS

public final Attr setAttributeNodeNS(Attr newAttr)
Untested.

Specified by:
setAttributeNodeNS in interface Element

getElementsByTagName

public final NodeList getElementsByTagName(String name)
Specified by:
getElementsByTagName in interface Element

getElementsByTagNameNS

public final NodeList getElementsByTagNameNS(String namespaceURI,
                                             String localName)
Untested.

Specified by:
getElementsByTagNameNS in interface Element

getSchemaTypeInfo

public final TypeInfo getSchemaTypeInfo()
Not yet coded.

Specified by:
getSchemaTypeInfo in interface Element
Throws:
UnsupportedOperationException

getTagName

public final String getTagName()
Specified by:
getTagName in interface Element

hasAttribute

public final boolean hasAttribute(String name)
Not yet coded.

Specified by:
hasAttribute in interface Element
Throws:
UnsupportedOperationException

hasAttributeNS

public final boolean hasAttributeNS(String namespaceURI,
                                    String localName)
Not yet coded.

Specified by:
hasAttributeNS in interface Element
Throws:
UnsupportedOperationException

removeAttribute

public final void removeAttribute(String name)
Specified by:
removeAttribute in interface Element

removeAttributeNS

public final void removeAttributeNS(String namespaceURI,
                                    String localName)
Untested.

Specified by:
removeAttributeNS in interface Element

removeAttributeNode

public final Attr removeAttributeNode(Attr oldAttr)
Specified by:
removeAttributeNode in interface Element

setIdAttribute

public final void setIdAttribute(String name,
                                 boolean isId)
Not yet coded.

Specified by:
setIdAttribute in interface Element
Throws:
UnsupportedOperationException

setIdAttributeNS

public final void setIdAttributeNS(String namespaceURI,
                                   String localName,
                                   boolean isId)
Not yet coded.

Specified by:
setIdAttributeNS in interface Element
Throws:
UnsupportedOperationException

setIdAttributeNode

public final void setIdAttributeNode(Attr idAttr,
                                     boolean isId)
Not yet coded.

Specified by:
setIdAttributeNode in interface Element
Throws:
UnsupportedOperationException

getLocalName

public final String getLocalName()
Specified by:
getLocalName in interface Node
Overrides:
getLocalName in class RhiNode