org.lobobrowser.html.domimpl
Class DocumentNotificationAdapter

java.lang.Object
  extended by org.lobobrowser.html.domimpl.DocumentNotificationAdapter
All Implemented Interfaces:
DocumentNotificationListener

public abstract class DocumentNotificationAdapter
extends java.lang.Object
implements DocumentNotificationListener

An abstract implementation of DocumentNotificationListener with blank methods, provided for convenience.


Constructor Summary
DocumentNotificationAdapter()
           
 
Method Summary
 void allInvalidated()
          This is called when the whole document is potentially invalid, e.g.
 void externalScriptLoading(NodeImpl node)
          Called when a external script (a SCRIPT tag with a src attribute) is about to start loading.
 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 lookInvalidated(NodeImpl node)
          Called if something such as a color or decoration has changed.
 void nodeLoaded(NodeImpl node)
          Called when the node (with all its contents) is first created by the parser.
 void positionInvalidated(NodeImpl node)
          Changed if the position of the node in a parent has changed.
 void sizeInvalidated(NodeImpl node)
          Called if a property related to the node's size has changed.
 void structureInvalidated(NodeImpl node)
          The children of the node might have changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentNotificationAdapter

public DocumentNotificationAdapter()
Method Detail

allInvalidated

public void allInvalidated()
Description copied from interface: DocumentNotificationListener
This is called when the whole document is potentially invalid, e.g. when a new style sheet has been added.

Specified by:
allInvalidated in interface DocumentNotificationListener

externalScriptLoading

public void externalScriptLoading(NodeImpl node)
Description copied from interface: DocumentNotificationListener
Called when a external script (a SCRIPT tag with a src attribute) is about to start loading.

Specified by:
externalScriptLoading in interface DocumentNotificationListener

invalidated

public void invalidated(NodeImpl node)
Description copied from interface: DocumentNotificationListener
This is called when the node has changed, but it is unclear if it's a size change or a look change. Typically, a node attribute has changed, but the set of child nodes has not changed.

Specified by:
invalidated in interface DocumentNotificationListener

lookInvalidated

public void lookInvalidated(NodeImpl node)
Description copied from interface: DocumentNotificationListener
Called if something such as a color or decoration has changed. This would be something which does not affect the rendered size.

Specified by:
lookInvalidated in interface DocumentNotificationListener

nodeLoaded

public void nodeLoaded(NodeImpl node)
Description copied from interface: DocumentNotificationListener
Called when the node (with all its contents) is first created by the parser.

Specified by:
nodeLoaded in interface DocumentNotificationListener

positionInvalidated

public void positionInvalidated(NodeImpl node)
Description copied from interface: DocumentNotificationListener
Changed if the position of the node in a parent has changed.

Specified by:
positionInvalidated in interface DocumentNotificationListener

sizeInvalidated

public void sizeInvalidated(NodeImpl node)
Description copied from interface: DocumentNotificationListener
Called if a property related to the node's size has changed.

Specified by:
sizeInvalidated in interface DocumentNotificationListener

structureInvalidated

public void structureInvalidated(NodeImpl node)
Description copied from interface: DocumentNotificationListener
The children of the node might have changed.

Specified by:
structureInvalidated in interface DocumentNotificationListener


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