adoptNode
public Node adoptNode(Node source)
throws DOMException
allInvalidated
public void allInvalidated()
createAttribute
public Attr createAttribute(String name)
throws DOMException
createAttributeNS
public Attr createAttributeNS(String namespaceURI,
String qualifiedName)
throws DOMException
createCDATASection
public CDATASection createCDATASection(String data)
throws DOMException
createComment
public Comment createComment(String data)
createDocumentFragment
public DocumentFragment createDocumentFragment()
createElement
public Element createElement(String tagName)
throws DOMException
createElementNS
public Element createElementNS(String namespaceURI,
String qualifiedName)
throws DOMException
createEntityReference
public EntityReference createEntityReference(String name)
throws DOMException
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target,
String data)
throws DOMException
createSimilarNode
protected Node createSimilarNode()
Should create a node with some cloned properties, like the node name,
but not attributes or children.
- createSimilarNode in interface NodeImpl
createTextNode
public Text createTextNode(String data)
externalScriptLoading
public void externalScriptLoading(NodeImpl node)
getDefaultTarget
public String getDefaultTarget()
getDoctype
public DocumentType getDoctype()
getDocumentElement
public Element getDocumentElement()
getDocumentURI
public String getDocumentURI()
getDomConfig
public DOMConfiguration getDomConfig()
getElementById
public Element getElementById(String elementId)
getElementsByName
public NodeList getElementsByName(String elementName)
Gets the collection of elements whose name
attribute is elementName
.
- getElementsByName in interface HTMLDocument
getElementsByTagName
public NodeList getElementsByTagName(String tagname)
Gets all elements that match the given tag name.
tagname
- The element tag name or an asterisk
character (*) to match all elements.
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI,
String localName)
getImplementation
public DOMImplementation getImplementation()
getInputEncoding
public String getInputEncoding()
getLocation
public final Location getLocation()
getOnloadHandler
public Function getOnloadHandler()
getStrictErrorChecking
public boolean getStrictErrorChecking()
getTextContent
public String getTextContent()
throws DOMException
Gets the text content of this node
and its descendents.
- getTextContent in interface NodeImpl
getXmlEncoding
public String getXmlEncoding()
getXmlStandalone
public boolean getXmlStandalone()
getXmlVersion
public String getXmlVersion()
importNode
public Node importNode(Node importedNode,
boolean deep)
throws DOMException
invalidated
public void invalidated(NodeImpl node)
This is called when the node has changed, but
it is unclear if it's a size change or a look
change.
load
public void load()
throws IOException,
SAXException,
UnsupportedEncodingException
Loads the document from the reader provided when it was constructed.
It then closes the reader.
load
public void load(boolean closeReader)
throws IOException,
SAXException,
UnsupportedEncodingException
lookInvalidated
public void lookInvalidated(NodeImpl node)
Called if something such as a color or
decoration has changed. This would be
something which does not affect the
rendered size.
namedItem
public Element namedItem(String name)
nodeLoaded
public void nodeLoaded(NodeImpl node)
normalizeDocument
public void normalizeDocument()
positionInParentInvalidated
public void positionInParentInvalidated(NodeImpl node)
Changed if the position of the node in a
parent has changed.
renameNode
public Node renameNode(Node n,
String namespaceURI,
String qualifiedName)
throws DOMException
setBaseURI
public void setBaseURI(String value)
setDefaultTarget
public void setDefaultTarget(String value)
setDoctype
public void setDoctype(DocumentType doctype)
setDocumentURI
public void setDocumentURI(String documentURI)
setDomain
public void setDomain(String domain)
setLocation
public void setLocation(String location)
setNodeValue
public void setNodeValue(String nodeValue)
throws DOMException
- setNodeValue in interface NodeImpl
setOnloadHandler
public void setOnloadHandler(Function onloadHandler)
setReferrer
public void setReferrer(String value)
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking)
setTextContent
public void setTextContent(String textContent)
throws DOMException
- setTextContent in interface NodeImpl
setUserData
public Object setUserData(String key,
Object data,
UserDataHandler handler)
- setUserData in interface NodeImpl
setXmlStandalone
public void setXmlStandalone(boolean xmlStandalone)
throws DOMException
setXmlVersion
public void setXmlVersion(String xmlVersion)
throws DOMException
sizeInvalidated
public void sizeInvalidated(NodeImpl node)