| 
 
 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectRhinohide
RhiEventTarget
RhiNode
RhiDocument
@ThreadSafe public class RhiDocument
A document implemented as an overlay of a JavaScript document. The orthodox way to obtain the document displayed by the browser is RhiWindow.getDocument().
| Field Summary | 
|---|
| Fields inherited from class Rhinohide | 
|---|
window | 
| Constructor Summary | |
|---|---|
protected  | 
RhiDocument(RhiWindow window,
                       netscape.javascript.JSObject jsObject)
 | 
| Method Summary | |
|---|---|
 Node | 
adoptNode(Node source)
Not yet coded.  | 
 Attr | 
createAttribute(String name)
 | 
 Attr | 
createAttributeNS(String namespaceURI,
                                   String qualifiedName)
Untested  | 
 CDATASection | 
createCDATASection(String data)
Not yet coded.  | 
 Comment | 
createComment(String data)
 | 
 DocumentFragment | 
createDocumentFragment()
 | 
 Element | 
createElement(String tagName)
 | 
 Element | 
createElementNS(String namespaceURI,
                               String qualifiedName)
 | 
 EntityReference | 
createEntityReference(String name)
Not yet coded.  | 
 NodeIterator | 
createNodeIterator(Node root,
                                     int whatToShow,
                                     NodeFilter filter,
                                     boolean entityReferenceExpansion)
 | 
 ProcessingInstruction | 
createProcessingInstruction(String target,
                                                       String data)
Not yet coded.  | 
 Range | 
createRange()
 | 
 Text | 
createTextNode(String data)
 | 
 TreeWalker | 
createTreeWalker(Node root,
                                 int whatToShow,
                                 NodeFilter filter,
                                 boolean entityReferenceExpansion)
 | 
 AbstractView | 
getDefaultView()
Not yet coded.  | 
 DocumentType | 
getDoctype()
 | 
 Element | 
getDocumentElement()
 | 
 String | 
getDocumentURI()
Untested.  | 
 DOMConfiguration | 
getDomConfig()
Not yet coded.  | 
 Element | 
getElementById(String elementId)
 | 
 NodeList | 
getElementsByTagName(String name)
 | 
 NodeList | 
getElementsByTagNameNS(String namespaceURI,
                                             String localName)
Untested.  | 
 DOMImplementation | 
getImplementation()
 | 
 String | 
getInputEncoding()
Untested.  | 
 boolean | 
getStrictErrorChecking()
Not yet coded.  | 
 String | 
getXmlEncoding()
 | 
 boolean | 
getXmlStandalone()
Not yet coded.  | 
 String | 
getXmlVersion()
 | 
 Node | 
importNode(Node importedNode,
                     boolean deep)
Not yet coded.  | 
 void | 
normalizeDocument()
Untested.  | 
 Node | 
renameNode(Node n,
                     String namespaceURI,
                     String qualifiedName)
Not yet coded.  | 
 void | 
setDocumentURI(String documentURI)
Not yet coded.  | 
 void | 
setStrictErrorChecking(boolean strictErrorChecking)
Not yet coded.  | 
 void | 
setXmlStandalone(boolean xmlStandalone)
Not yet coded.  | 
 void | 
setXmlVersion(String xmlVersion)
Not yet coded.  | 
static RhiDocument | 
wrapDocument(RhiWindow window,
                         netscape.javascript.JSObject jsObject)
Creates a RhiDocument.  | 
(package private) static RhiDocument | 
wrapDocument(RhiWindow window,
                         netscape.javascript.JSObject jsObject,
                         boolean doTypeCheck)
 | 
| 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, 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 | 
| Constructor Detail | 
|---|
protected RhiDocument(RhiWindow window,
                      netscape.javascript.JSObject jsObject)
| Method Detail | 
|---|
public static RhiDocument wrapDocument(RhiWindow window,
                                       netscape.javascript.JSObject jsObject)
window - global objectjsObject - bridge to underlying JavaScript document,
         per jsObject()
IllegalArgumentException - if jsObject is neither null
         nor a document
static RhiDocument wrapDocument(RhiWindow window,
                                netscape.javascript.JSObject jsObject,
                                boolean doTypeCheck)
public final Node adoptNode(Node source)
adoptNode in interface DocumentUnsupportedOperationExceptionpublic final Attr createAttribute(String name)
createAttribute in interface Document
public final Attr createAttributeNS(String namespaceURI,
                                    String qualifiedName)
createAttributeNS in interface Documentpublic final CDATASection createCDATASection(String data)
createCDATASection in interface DocumentUnsupportedOperationExceptionpublic final Comment createComment(String data)
createComment in interface Documentpublic final DocumentFragment createDocumentFragment()
createDocumentFragment in interface Documentpublic final Element createElement(String tagName)
createElement in interface Document
public final Element createElementNS(String namespaceURI,
                                     String qualifiedName)
createElementNS in interface Documentpublic final EntityReference createEntityReference(String name)
createEntityReference in interface DocumentUnsupportedOperationException
public final ProcessingInstruction createProcessingInstruction(String target,
                                                               String data)
createProcessingInstruction in interface DocumentUnsupportedOperationExceptionpublic final Text createTextNode(String data)
createTextNode in interface Documentpublic final DocumentType getDoctype()
getDoctype in interface Documentpublic final Element getDocumentElement()
getDocumentElement in interface Documentpublic final String getDocumentURI()
getDocumentURI in interface Documentpublic final void setDocumentURI(String documentURI)
setDocumentURI in interface DocumentUnsupportedOperationExceptionpublic final DOMConfiguration getDomConfig()
getDomConfig in interface DocumentUnsupportedOperationExceptionpublic final Element getElementById(String elementId)
getElementById in interface Documentpublic final NodeList getElementsByTagName(String name)
getElementsByTagName in interface Document
public final NodeList getElementsByTagNameNS(String namespaceURI,
                                             String localName)
getElementsByTagNameNS in interface Documentpublic final DOMImplementation getImplementation()
getImplementation in interface Documentpublic final String getInputEncoding()
getInputEncoding in interface Documentpublic final boolean getStrictErrorChecking()
getStrictErrorChecking in interface DocumentUnsupportedOperationExceptionpublic final void setStrictErrorChecking(boolean strictErrorChecking)
setStrictErrorChecking in interface DocumentUnsupportedOperationExceptionpublic final String getXmlEncoding()
getXmlEncoding in interface Documentpublic final boolean getXmlStandalone()
getXmlStandalone in interface DocumentUnsupportedOperationExceptionpublic final void setXmlStandalone(boolean xmlStandalone)
setXmlStandalone in interface DocumentUnsupportedOperationExceptionpublic final String getXmlVersion()
getXmlVersion in interface Documentpublic final void setXmlVersion(String xmlVersion)
setXmlVersion in interface DocumentUnsupportedOperationException
public final Node importNode(Node importedNode,
                             boolean deep)
importNode in interface DocumentUnsupportedOperationExceptionpublic final void normalizeDocument()
normalizeDocument in interface Document
public final Node renameNode(Node n,
                             String namespaceURI,
                             String qualifiedName)
renameNode in interface DocumentUnsupportedOperationExceptionpublic final Range createRange()
createRange in interface DocumentRange
public final NodeIterator createNodeIterator(Node root,
                                             int whatToShow,
                                             NodeFilter filter,
                                             boolean entityReferenceExpansion)
createNodeIterator in interface DocumentTraversalUnsupportedOperationException - because it's not yet implemented in browsers (Mozilla), so we haven't coded it yet
public final TreeWalker createTreeWalker(Node root,
                                         int whatToShow,
                                         NodeFilter filter,
                                         boolean entityReferenceExpansion)
createTreeWalker in interface DocumentTraversalIllegalArgumentException - if filter is not null, because we haven't coded that part yetpublic final AbstractView getDefaultView()
getDefaultView in interface DocumentViewUnsupportedOperationException
  | 
 
 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||