Package org.lobobrowser.html.domimpl
Interface DocumentNotificationListener
-
- All Known Implementing Classes:
DocumentNotificationAdapter
public interface DocumentNotificationListenerA listener of document changes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidallInvalidated()This is called when the whole document is potentially invalid, e.g.voidexternalScriptLoading(NodeImpl node)Called 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.
-
-
-
Method Detail
-
sizeInvalidated
void sizeInvalidated(NodeImpl node)
Called if a property related to the node's size has changed.- Parameters:
node-
-
lookInvalidated
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.- Parameters:
node-
-
positionInvalidated
void positionInvalidated(NodeImpl node)
Changed if the position of the node in a parent has changed.- Parameters:
node-
-
invalidated
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. Typically, a node attribute has changed, but the set of child nodes has not changed.- Parameters:
node-
-
nodeLoaded
void nodeLoaded(NodeImpl node)
Called when the node (with all its contents) is first created by the parser.- Parameters:
node-
-
structureInvalidated
void structureInvalidated(NodeImpl node)
The children of the node might have changed.- Parameters:
node-
-
externalScriptLoading
void externalScriptLoading(NodeImpl node)
Called when a external script (a SCRIPT tag with a src attribute) is about to start loading.- Parameters:
node-
-
allInvalidated
void allInvalidated()
This is called when the whole document is potentially invalid, e.g. when a new style sheet has been added.
-
-