org.lobobrowser.html.domimpl
Class HTMLDocumentImpl

java.lang.Object
  extended by org.lobobrowser.js.AbstractScriptableDelegate
      extended by org.lobobrowser.html.domimpl.NodeImpl
          extended by org.lobobrowser.html.domimpl.HTMLDocumentImpl
All Implemented Interfaces:
ModelNode, org.lobobrowser.js.ScriptableDelegate, org.w3c.dom.Document, org.w3c.dom.html2.HTMLDocument, org.w3c.dom.Node, org.w3c.dom.views.DocumentView

public class HTMLDocumentImpl
extends NodeImpl
implements org.w3c.dom.html2.HTMLDocument, org.w3c.dom.views.DocumentView

Implementation of the W3C HTMLDocument interface.


Nested Class Summary
 class HTMLDocumentImpl.CSSStyleSheetList
           
 
Field Summary
 
Fields inherited from class org.lobobrowser.html.domimpl.NodeImpl
document, nodeList, notificationsSuspended, parentNode, treeLock, uiNode
 
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
HTMLDocumentImpl(HtmlRendererContext rcontext)
           
HTMLDocumentImpl(UserAgentContext ucontext)
           
HTMLDocumentImpl(UserAgentContext ucontext, HtmlRendererContext rcontext, org.lobobrowser.html.io.WritableLineReader reader, java.lang.String documentURI)
           
 
Method Summary
 void addDocumentNotificationListener(DocumentNotificationListener listener)
          Adds a document notification listener, which is informed about changes to the document.
 org.w3c.dom.Node adoptNode(org.w3c.dom.Node source)
           
 void allInvalidated()
          Informs listeners that the whole document has been invalidated.
 void allInvalidated(boolean forgetRenderStates)
           
 void close()
           
 org.w3c.dom.Attr createAttribute(java.lang.String name)
           
 org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
           
 org.w3c.dom.CDATASection createCDATASection(java.lang.String data)
           
 org.w3c.dom.Comment createComment(java.lang.String data)
           
 org.w3c.dom.DocumentFragment createDocumentFragment()
           
 org.w3c.dom.Element createElement(java.lang.String tagName)
           
 org.w3c.dom.Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
           
 org.w3c.dom.EntityReference createEntityReference(java.lang.String name)
           
 org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data)
           
protected  org.lobobrowser.html.style.RenderState createRenderState(org.lobobrowser.html.style.RenderState prevRenderState)
           
protected  org.w3c.dom.Node createSimilarNode()
          Should create a node with some cloned properties, like the node name, but not attributes or children.
 org.w3c.dom.Text createTextNode(java.lang.String data)
           
 void externalScriptLoading(NodeImpl node)
           
 org.w3c.dom.html2.HTMLCollection getAnchors()
           
 org.w3c.dom.html2.HTMLCollection getApplets()
           
 java.lang.String getBaseURI()
           
 org.w3c.dom.html2.HTMLElement getBody()
           
 java.lang.String getCookie()
           
 java.lang.String getDefaultTarget()
           
 org.w3c.dom.views.AbstractView getDefaultView()
           
 org.w3c.dom.DocumentType getDoctype()
           
 org.w3c.dom.Element getDocumentElement()
           
 java.lang.String getDocumentURI()
           
 java.net.URL getDocumentURL()
           
 java.lang.String getDomain()
           
 org.w3c.dom.DOMConfiguration getDomConfig()
           
 org.w3c.dom.Element getElementById(java.lang.String elementId)
           
 org.w3c.dom.NodeList getElementsByName(java.lang.String elementName)
          Gets the collection of elements whose name attribute is elementName.
 org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagname)
          Gets all elements that match the given tag name.
 org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
           
 org.w3c.dom.html2.HTMLCollection getForms()
           
 org.w3c.dom.html2.HTMLCollection getFrames()
           
 java.net.URL getFullURL(java.lang.String uri)
           
 HtmlRendererContext getHtmlRendererContext()
           
 org.w3c.dom.html2.HTMLCollection getImages()
           
 org.w3c.dom.DOMImplementation getImplementation()
           
 java.lang.String getInputEncoding()
           
 org.w3c.dom.html2.HTMLCollection getLinks()
           
 java.util.Set getLocales()
          Gets an immutable set of locales previously set for this document.
 java.lang.String getLocalName()
           
 org.lobobrowser.html.js.Location getLocation()
           
 java.lang.String getNodeName()
           
 short getNodeType()
           
 java.lang.String getNodeValue()
           
 org.mozilla.javascript.Function getOnloadHandler()
           
 java.lang.String getReferrer()
           
 boolean getStrictErrorChecking()
           
 java.util.Collection getStyleSheets()
           
 java.lang.String getTextContent()
          Gets the text content of this node and its descendents.
 java.lang.String getTitle()
           
 java.lang.String getURL()
           
 UserAgentContext getUserAgentContext()
           
 java.lang.String getXmlEncoding()
           
 boolean getXmlStandalone()
           
 java.lang.String getXmlVersion()
           
 org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep)
           
 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.
 void load()
          Loads the document from the reader provided when the current instance of HTMLDocumentImpl was constructed.
 void load(boolean closeReader)
           
protected  void loadImage(java.lang.String relativeUri, ImageListener imageListener)
          Loads images asynchronously such that they are shared if loaded simultaneously from the same URI.
 void lookInvalidated(NodeImpl node)
          Called if something such as a color or decoration has changed.
 org.w3c.dom.Element namedItem(java.lang.String name)
           
 void nodeLoaded(NodeImpl node)
           
 void normalizeDocument()
           
 void open()
           
 void positionInParentInvalidated(NodeImpl node)
          Changed if the position of the node in a parent has changed.
 void removeDocumentNotificationListener(DocumentNotificationListener listener)
           
 org.w3c.dom.Node renameNode(org.w3c.dom.Node n, java.lang.String namespaceURI, java.lang.String qualifiedName)
           
 void setBaseURI(java.lang.String value)
           
 void setBody(org.w3c.dom.html2.HTMLElement body)
           
 void setCookie(java.lang.String cookie)
           
 void setDefaultTarget(java.lang.String value)
           
 void setDoctype(org.w3c.dom.DocumentType doctype)
           
 void setDocumentURI(java.lang.String documentURI)
           
 void setDomain(java.lang.String domain)
           
 void setLocales(java.util.Set locales)
          Sets the locales of the document.
 void setLocation(java.lang.String location)
           
 void setNodeValue(java.lang.String nodeValue)
           
 void setOnloadHandler(org.mozilla.javascript.Function onloadHandler)
           
 void setReferrer(java.lang.String value)
           
 void setStrictErrorChecking(boolean strictErrorChecking)
           
 void setTextContent(java.lang.String textContent)
           
 void setTitle(java.lang.String title)
           
 java.lang.Object setUserData(java.lang.String key, java.lang.Object data, org.w3c.dom.UserDataHandler handler)
           
 void setXmlStandalone(boolean xmlStandalone)
           
 void setXmlVersion(java.lang.String xmlVersion)
           
 void sizeInvalidated(NodeImpl node)
           
 void structureInvalidated(NodeImpl node)
          This is called when children of the node might have changed.
 void write(java.lang.String text)
           
 void writeln(java.lang.String text)
           
 
Methods inherited from class org.lobobrowser.html.domimpl.NodeImpl
appendChild, appendInnerHTMLImpl, appendInnerTextImpl, cloneNode, compareDocumentPosition, equalAttributes, findUINode, forgetRenderState, getAlignmentX, getAlignmentY, getAttributes, getChildNodes, getChildren, getChildrenArray, getDescendents, getDocumentItem, getFeature, getFirstChild, getInnerHTML, getInnerText, getLastChild, getNamespaceURI, getNextSibling, getNodeList, getOwnerDocument, getParentModelNode, getParentNode, getParentRenderState, getPrefix, getPreviousSibling, getRenderState, getUINode, getUserData, hasAttributes, hasChildNodes, htmlEncodeChildText, informDocumentInvalid, informExternalScriptLoading, informInvalid, informLayoutInvalid, informLookInvalid, informNodeLoaded, informPositionInvalid, informSizeInvalid, informStructureInvalid, insertAfter, insertAt, insertBefore, isDefaultNamespace, isEqualNode, isEqualOrDescendentOf, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeAllChildren, removeAllChildrenImpl, removeChild, removeChildAt, removeChildren, removeChildrenImpl, replaceAdjacentTextNodes, replaceAdjacentTextNodes, replaceChild, setDocumentItem, setPrefix, setUINode, toString, warn, warn
 
Methods inherited from class org.lobobrowser.js.AbstractScriptableDelegate
getScriptable, setScriptable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getChildNodes, getFeature, getFirstChild, getLastChild, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setPrefix
 

Constructor Detail

HTMLDocumentImpl

public HTMLDocumentImpl(HtmlRendererContext rcontext)

HTMLDocumentImpl

public HTMLDocumentImpl(UserAgentContext ucontext)

HTMLDocumentImpl

public HTMLDocumentImpl(UserAgentContext ucontext,
                        HtmlRendererContext rcontext,
                        org.lobobrowser.html.io.WritableLineReader reader,
                        java.lang.String documentURI)
Method Detail

getLocales

public java.util.Set getLocales()
Gets an immutable set of locales previously set for this document.


setLocales

public void setLocales(java.util.Set locales)
Sets the locales of the document. This helps determine whether specific fonts can display text in the languages of all the locales.

Parameters:
locales - An immutable set of java.util.Locale instances.

getDocumentURL

public java.net.URL getDocumentURL()
Overrides:
getDocumentURL in class NodeImpl

getBaseURI

public java.lang.String getBaseURI()
Specified by:
getBaseURI in interface org.w3c.dom.Node
Overrides:
getBaseURI in class NodeImpl

setBaseURI

public void setBaseURI(java.lang.String value)

getDefaultTarget

public java.lang.String getDefaultTarget()

setDefaultTarget

public void setDefaultTarget(java.lang.String value)

getDefaultView

public org.w3c.dom.views.AbstractView getDefaultView()
Specified by:
getDefaultView in interface org.w3c.dom.views.DocumentView

getTextContent

public java.lang.String getTextContent()
                                throws org.w3c.dom.DOMException
Description copied from class: NodeImpl
Gets the text content of this node and its descendents.

Specified by:
getTextContent in interface org.w3c.dom.Node
Overrides:
getTextContent in class NodeImpl
Throws:
org.w3c.dom.DOMException

setTextContent

public void setTextContent(java.lang.String textContent)
                    throws org.w3c.dom.DOMException
Specified by:
setTextContent in interface org.w3c.dom.Node
Overrides:
setTextContent in class NodeImpl
Throws:
org.w3c.dom.DOMException

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface org.w3c.dom.html2.HTMLDocument

setTitle

public void setTitle(java.lang.String title)
Specified by:
setTitle in interface org.w3c.dom.html2.HTMLDocument

getReferrer

public java.lang.String getReferrer()
Specified by:
getReferrer in interface org.w3c.dom.html2.HTMLDocument

setReferrer

public void setReferrer(java.lang.String value)

getDomain

public java.lang.String getDomain()
Specified by:
getDomain in interface org.w3c.dom.html2.HTMLDocument

setDomain

public void setDomain(java.lang.String domain)

getBody

public org.w3c.dom.html2.HTMLElement getBody()
Specified by:
getBody in interface org.w3c.dom.html2.HTMLDocument

getImages

public org.w3c.dom.html2.HTMLCollection getImages()
Specified by:
getImages in interface org.w3c.dom.html2.HTMLDocument

getApplets

public org.w3c.dom.html2.HTMLCollection getApplets()
Specified by:
getApplets in interface org.w3c.dom.html2.HTMLDocument

getLinks

public org.w3c.dom.html2.HTMLCollection getLinks()
Specified by:
getLinks in interface org.w3c.dom.html2.HTMLDocument

getForms

public org.w3c.dom.html2.HTMLCollection getForms()
Specified by:
getForms in interface org.w3c.dom.html2.HTMLDocument

getFrames

public org.w3c.dom.html2.HTMLCollection getFrames()

getAnchors

public org.w3c.dom.html2.HTMLCollection getAnchors()
Specified by:
getAnchors in interface org.w3c.dom.html2.HTMLDocument

getCookie

public java.lang.String getCookie()
Specified by:
getCookie in interface org.w3c.dom.html2.HTMLDocument

setCookie

public void setCookie(java.lang.String cookie)
               throws org.w3c.dom.DOMException
Specified by:
setCookie in interface org.w3c.dom.html2.HTMLDocument
Throws:
org.w3c.dom.DOMException

open

public void open()
Specified by:
open in interface org.w3c.dom.html2.HTMLDocument

load

public void load()
          throws java.io.IOException,
                 org.xml.sax.SAXException,
                 java.io.UnsupportedEncodingException
Loads the document from the reader provided when the current instance of HTMLDocumentImpl was constructed. It then closes the reader.

Throws:
java.io.IOException
org.xml.sax.SAXException
java.io.UnsupportedEncodingException

load

public void load(boolean closeReader)
          throws java.io.IOException,
                 org.xml.sax.SAXException,
                 java.io.UnsupportedEncodingException
Throws:
java.io.IOException
org.xml.sax.SAXException
java.io.UnsupportedEncodingException

close

public void close()
Specified by:
close in interface org.w3c.dom.html2.HTMLDocument

write

public void write(java.lang.String text)
Specified by:
write in interface org.w3c.dom.html2.HTMLDocument

writeln

public void writeln(java.lang.String text)
Specified by:
writeln in interface org.w3c.dom.html2.HTMLDocument

getElementsByName

public org.w3c.dom.NodeList getElementsByName(java.lang.String elementName)
Gets the collection of elements whose name attribute is elementName.

Specified by:
getElementsByName in interface org.w3c.dom.html2.HTMLDocument

getDoctype

public org.w3c.dom.DocumentType getDoctype()
Specified by:
getDoctype in interface org.w3c.dom.Document

setDoctype

public void setDoctype(org.w3c.dom.DocumentType doctype)

getDocumentElement

public org.w3c.dom.Element getDocumentElement()
Specified by:
getDocumentElement in interface org.w3c.dom.Document

createElement

public org.w3c.dom.Element createElement(java.lang.String tagName)
                                  throws org.w3c.dom.DOMException
Specified by:
createElement in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

createDocumentFragment

public org.w3c.dom.DocumentFragment createDocumentFragment()
Specified by:
createDocumentFragment in interface org.w3c.dom.Document

createTextNode

public org.w3c.dom.Text createTextNode(java.lang.String data)
Specified by:
createTextNode in interface org.w3c.dom.Document

createComment

public org.w3c.dom.Comment createComment(java.lang.String data)
Specified by:
createComment in interface org.w3c.dom.Document

createCDATASection

public org.w3c.dom.CDATASection createCDATASection(java.lang.String data)
                                            throws org.w3c.dom.DOMException
Specified by:
createCDATASection in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

createProcessingInstruction

public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target,
                                                                     java.lang.String data)
                                                              throws org.w3c.dom.DOMException
Specified by:
createProcessingInstruction in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

createAttribute

public org.w3c.dom.Attr createAttribute(java.lang.String name)
                                 throws org.w3c.dom.DOMException
Specified by:
createAttribute in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

createEntityReference

public org.w3c.dom.EntityReference createEntityReference(java.lang.String name)
                                                  throws org.w3c.dom.DOMException
Specified by:
createEntityReference in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

getElementsByTagName

public org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagname)
Gets all elements that match the given tag name.

Specified by:
getElementsByTagName in interface org.w3c.dom.Document
Parameters:
tagname - The element tag name or an asterisk character (*) to match all elements.

importNode

public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode,
                                   boolean deep)
                            throws org.w3c.dom.DOMException
Specified by:
importNode in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

createElementNS

public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI,
                                           java.lang.String qualifiedName)
                                    throws org.w3c.dom.DOMException
Specified by:
createElementNS in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

createAttributeNS

public org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI,
                                          java.lang.String qualifiedName)
                                   throws org.w3c.dom.DOMException
Specified by:
createAttributeNS in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

getElementsByTagNameNS

public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI,
                                                   java.lang.String localName)
Specified by:
getElementsByTagNameNS in interface org.w3c.dom.Document

getElementById

public org.w3c.dom.Element getElementById(java.lang.String elementId)
Specified by:
getElementById in interface org.w3c.dom.Document

namedItem

public org.w3c.dom.Element namedItem(java.lang.String name)

getInputEncoding

public java.lang.String getInputEncoding()
Specified by:
getInputEncoding in interface org.w3c.dom.Document

getXmlEncoding

public java.lang.String getXmlEncoding()
Specified by:
getXmlEncoding in interface org.w3c.dom.Document

getXmlStandalone

public boolean getXmlStandalone()
Specified by:
getXmlStandalone in interface org.w3c.dom.Document

setXmlStandalone

public void setXmlStandalone(boolean xmlStandalone)
                      throws org.w3c.dom.DOMException
Specified by:
setXmlStandalone in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

getXmlVersion

public java.lang.String getXmlVersion()
Specified by:
getXmlVersion in interface org.w3c.dom.Document

setXmlVersion

public void setXmlVersion(java.lang.String xmlVersion)
                   throws org.w3c.dom.DOMException
Specified by:
setXmlVersion in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

getStrictErrorChecking

public boolean getStrictErrorChecking()
Specified by:
getStrictErrorChecking in interface org.w3c.dom.Document

setStrictErrorChecking

public void setStrictErrorChecking(boolean strictErrorChecking)
Specified by:
setStrictErrorChecking in interface org.w3c.dom.Document

getDocumentURI

public java.lang.String getDocumentURI()
Specified by:
getDocumentURI in interface org.w3c.dom.Document

setDocumentURI

public void setDocumentURI(java.lang.String documentURI)
Specified by:
setDocumentURI in interface org.w3c.dom.Document

adoptNode

public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source)
                           throws org.w3c.dom.DOMException
Specified by:
adoptNode in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

getDomConfig

public org.w3c.dom.DOMConfiguration getDomConfig()
Specified by:
getDomConfig in interface org.w3c.dom.Document

normalizeDocument

public void normalizeDocument()
Specified by:
normalizeDocument in interface org.w3c.dom.Document

renameNode

public org.w3c.dom.Node renameNode(org.w3c.dom.Node n,
                                   java.lang.String namespaceURI,
                                   java.lang.String qualifiedName)
                            throws org.w3c.dom.DOMException
Specified by:
renameNode in interface org.w3c.dom.Document
Throws:
org.w3c.dom.DOMException

getImplementation

public org.w3c.dom.DOMImplementation getImplementation()
Specified by:
getImplementation in interface org.w3c.dom.Document

getLocalName

public java.lang.String getLocalName()
Specified by:
getLocalName in interface org.w3c.dom.Node
Specified by:
getLocalName in class NodeImpl

getNodeName

public java.lang.String getNodeName()
Specified by:
getNodeName in interface org.w3c.dom.Node
Specified by:
getNodeName in class NodeImpl

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface org.w3c.dom.Node
Specified by:
getNodeType in class NodeImpl

getNodeValue

public java.lang.String getNodeValue()
                              throws org.w3c.dom.DOMException
Specified by:
getNodeValue in interface org.w3c.dom.Node
Specified by:
getNodeValue in class NodeImpl
Throws:
org.w3c.dom.DOMException

setNodeValue

public void setNodeValue(java.lang.String nodeValue)
                  throws org.w3c.dom.DOMException
Specified by:
setNodeValue in interface org.w3c.dom.Node
Specified by:
setNodeValue in class NodeImpl
Throws:
org.w3c.dom.DOMException

getHtmlRendererContext

public final HtmlRendererContext getHtmlRendererContext()
Overrides:
getHtmlRendererContext in class NodeImpl

getUserAgentContext

public UserAgentContext getUserAgentContext()
Overrides:
getUserAgentContext in class NodeImpl

getFullURL

public final java.net.URL getFullURL(java.lang.String uri)
Specified by:
getFullURL in interface ModelNode
Overrides:
getFullURL in class NodeImpl

getLocation

public final org.lobobrowser.html.js.Location getLocation()

setLocation

public void setLocation(java.lang.String location)

getURL

public java.lang.String getURL()
Specified by:
getURL in interface org.w3c.dom.html2.HTMLDocument

setBody

public void setBody(org.w3c.dom.html2.HTMLElement body)
Specified by:
setBody in interface org.w3c.dom.html2.HTMLDocument

allInvalidated

public void allInvalidated(boolean forgetRenderStates)

getStyleSheets

public java.util.Collection getStyleSheets()

addDocumentNotificationListener

public void addDocumentNotificationListener(DocumentNotificationListener listener)
Adds a document notification listener, which is informed about changes to the document.

Parameters:
listener - An instance of DocumentNotificationListener.

removeDocumentNotificationListener

public void removeDocumentNotificationListener(DocumentNotificationListener listener)

sizeInvalidated

public void sizeInvalidated(NodeImpl node)

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, and can be revalidated with a simple repaint.

Parameters:
node -

positionInParentInvalidated

public void positionInParentInvalidated(NodeImpl node)
Changed if the position of the node in a parent has changed.

Parameters:
node -

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. An attribute change should trigger this.

Parameters:
node -

structureInvalidated

public void structureInvalidated(NodeImpl node)
This is called when children of the node might have changed.

Parameters:
node -

nodeLoaded

public void nodeLoaded(NodeImpl node)

externalScriptLoading

public void externalScriptLoading(NodeImpl node)

allInvalidated

public void allInvalidated()
Informs listeners that the whole document has been invalidated.


createRenderState

protected org.lobobrowser.html.style.RenderState createRenderState(org.lobobrowser.html.style.RenderState prevRenderState)
Overrides:
createRenderState in class NodeImpl

loadImage

protected void loadImage(java.lang.String relativeUri,
                         ImageListener imageListener)
Loads images asynchronously such that they are shared if loaded simultaneously from the same URI. Informs the listener immediately if an image is already known.

Parameters:
relativeUri -
imageListener -

getOnloadHandler

public org.mozilla.javascript.Function getOnloadHandler()

setOnloadHandler

public void setOnloadHandler(org.mozilla.javascript.Function onloadHandler)

setUserData

public java.lang.Object setUserData(java.lang.String key,
                                    java.lang.Object data,
                                    org.w3c.dom.UserDataHandler handler)
Specified by:
setUserData in interface org.w3c.dom.Node
Overrides:
setUserData in class NodeImpl

createSimilarNode

protected org.w3c.dom.Node createSimilarNode()
Description copied from class: NodeImpl
Should create a node with some cloned properties, like the node name, but not attributes or children.

Specified by:
createSimilarNode in class NodeImpl


SourceForge.net LogoCopyright © 2005, 2006, 2007 The Lobo Project. All Rights Reserved.
[Cobra Project Home]