|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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 documentstatic RhiDocument wrapDocument(RhiWindow window, netscape.javascript.JSObject jsObject, boolean doTypeCheck)
public final Node adoptNode(Node source)
adoptNode
in interface Document
UnsupportedOperationException
public final Attr createAttribute(String name)
createAttribute
in interface Document
public final Attr createAttributeNS(String namespaceURI, String qualifiedName)
createAttributeNS
in interface Document
public final CDATASection createCDATASection(String data)
createCDATASection
in interface Document
UnsupportedOperationException
public final Comment createComment(String data)
createComment
in interface Document
public final DocumentFragment createDocumentFragment()
createDocumentFragment
in interface Document
public final Element createElement(String tagName)
createElement
in interface Document
public final Element createElementNS(String namespaceURI, String qualifiedName)
createElementNS
in interface Document
public final EntityReference createEntityReference(String name)
createEntityReference
in interface Document
UnsupportedOperationException
public final ProcessingInstruction createProcessingInstruction(String target, String data)
createProcessingInstruction
in interface Document
UnsupportedOperationException
public final Text createTextNode(String data)
createTextNode
in interface Document
public final DocumentType getDoctype()
getDoctype
in interface Document
public final Element getDocumentElement()
getDocumentElement
in interface Document
public final String getDocumentURI()
getDocumentURI
in interface Document
public final void setDocumentURI(String documentURI)
setDocumentURI
in interface Document
UnsupportedOperationException
public final DOMConfiguration getDomConfig()
getDomConfig
in interface Document
UnsupportedOperationException
public final Element getElementById(String elementId)
getElementById
in interface Document
public final NodeList getElementsByTagName(String name)
getElementsByTagName
in interface Document
public final NodeList getElementsByTagNameNS(String namespaceURI, String localName)
getElementsByTagNameNS
in interface Document
public final DOMImplementation getImplementation()
getImplementation
in interface Document
public final String getInputEncoding()
getInputEncoding
in interface Document
public final boolean getStrictErrorChecking()
getStrictErrorChecking
in interface Document
UnsupportedOperationException
public final void setStrictErrorChecking(boolean strictErrorChecking)
setStrictErrorChecking
in interface Document
UnsupportedOperationException
public final String getXmlEncoding()
getXmlEncoding
in interface Document
public final boolean getXmlStandalone()
getXmlStandalone
in interface Document
UnsupportedOperationException
public final void setXmlStandalone(boolean xmlStandalone)
setXmlStandalone
in interface Document
UnsupportedOperationException
public final String getXmlVersion()
getXmlVersion
in interface Document
public final void setXmlVersion(String xmlVersion)
setXmlVersion
in interface Document
UnsupportedOperationException
public final Node importNode(Node importedNode, boolean deep)
importNode
in interface Document
UnsupportedOperationException
public final void normalizeDocument()
normalizeDocument
in interface Document
public final Node renameNode(Node n, String namespaceURI, String qualifiedName)
renameNode
in interface Document
UnsupportedOperationException
public final Range createRange()
createRange
in interface DocumentRange
public final NodeIterator createNodeIterator(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion)
createNodeIterator
in interface DocumentTraversal
UnsupportedOperationException
- because it's not yet implemented in browsers (Mozilla), so we haven't coded it yetpublic final TreeWalker createTreeWalker(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion)
createTreeWalker
in interface DocumentTraversal
IllegalArgumentException
- if filter is not null, because we haven't coded that part yetpublic final AbstractView getDefaultView()
getDefaultView
in interface DocumentView
UnsupportedOperationException
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |