Class DocumentNotificationAdapter
java.lang.Object
org.loboevolution.html.dom.nodeimpl.event.DocumentNotificationAdapter
- All Implemented Interfaces:
DocumentNotificationListener
public abstract class DocumentNotificationAdapter
extends Object
implements DocumentNotificationListener
An abstract implementation of
DocumentNotificationListener with blank
methods, provided for convenience.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis is called when the whole document is potentially invalid, e.g. when a new style sheet has been added.voidCalled when a external script (a SCRIPT tag with a src attribute) is about to start loading.voidinvalidated(NodeImpl node) This is called when the node has changed, but it is unclear if it's a size change or a look change.voidlookInvalidated(NodeImpl node) Called if something such as a color or decoration has changed.voidnodeLoaded(NodeImpl node) Called when the node (with all its contents) is first created by the parser.voidpositionInvalidated(NodeImpl node) Changed if the position of the node in a parent has changed.voidsizeInvalidated(NodeImpl node) Called if a property related to the node's size has changed.voidstructureInvalidated(NodeImpl node) The children of the node might have changed.
-
Constructor Details
-
DocumentNotificationAdapter
public DocumentNotificationAdapter()
-
-
Method Details
-
allInvalidated
public void allInvalidated()This is called when the whole document is potentially invalid, e.g. when a new style sheet has been added.- Specified by:
allInvalidatedin interfaceDocumentNotificationListener
-
externalScriptLoading
Called when a external script (a SCRIPT tag with a src attribute) is about to start loading.- Specified by:
externalScriptLoadingin interfaceDocumentNotificationListener- Parameters:
node- aNodeImplobject.
-
invalidated
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:
invalidatedin interfaceDocumentNotificationListener- Parameters:
node- aNodeImplobject.
-
lookInvalidated
Called if something such as a color or decoration has changed. This would be something which does not affect the rendered size.- Specified by:
lookInvalidatedin interfaceDocumentNotificationListener- Parameters:
node- aNodeImplobject.
-
nodeLoaded
Called when the node (with all its contents) is first created by the parser.- Specified by:
nodeLoadedin interfaceDocumentNotificationListener- Parameters:
node- aNodeImplobject.
-
positionInvalidated
Changed if the position of the node in a parent has changed.- Specified by:
positionInvalidatedin interfaceDocumentNotificationListener- Parameters:
node- aNodeImplobject.
-
sizeInvalidated
Called if a property related to the node's size has changed.- Specified by:
sizeInvalidatedin interfaceDocumentNotificationListener- Parameters:
node- aNodeImplobject.
-
structureInvalidated
The children of the node might have changed.- Specified by:
structureInvalidatedin interfaceDocumentNotificationListener- Parameters:
node- aNodeImplobject.
-