Class AbstractDomNodeList.DomHtmlAttributeChangeListenerImpl
java.lang.Object
org.htmlunit.html.AbstractDomNodeList.DomHtmlAttributeChangeListenerImpl
- All Implemented Interfaces:
Serializable, DomChangeListener, HtmlAttributeChangeListener
- Enclosing class:
AbstractDomNodeList<E extends DomNode>
private static final class AbstractDomNodeList.DomHtmlAttributeChangeListenerImpl
extends Object
implements DomChangeListener, HtmlAttributeChangeListener
DOM change listener which clears the node cache when necessary.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidNotification that a new attribute was added to the HtmlElement.voidNotification that an existing attribute has been removed from the HtmlElement.voidNotification that an attribute on the HtmlElement has been replaced.private voidvoidnodeAdded(DomChangeEvent event) Notification that a new node was added.voidnodeDeleted(DomChangeEvent event) Notification that a new node was deleted.
-
Field Details
-
nodeList_
-
-
Constructor Details
-
DomHtmlAttributeChangeListenerImpl
DomHtmlAttributeChangeListenerImpl(AbstractDomNodeList<?> nodeList)
-
-
Method Details
-
nodeAdded
Notification that a new node was added. Called after the node is added.- Specified by:
nodeAddedin interfaceDomChangeListener- Parameters:
event- the node addition event
-
nodeDeleted
Notification that a new node was deleted. Called after the node is deleted.- Specified by:
nodeDeletedin interfaceDomChangeListener- Parameters:
event- the node deletion event
-
attributeAdded
Notification that a new attribute was added to the HtmlElement. Called after the attribute is added.- Specified by:
attributeAddedin interfaceHtmlAttributeChangeListener- Parameters:
event- the attribute change event
-
attributeRemoved
Notification that an existing attribute has been removed from the HtmlElement. Called after the attribute is removed.- Specified by:
attributeRemovedin interfaceHtmlAttributeChangeListener- Parameters:
event- the attribute change event
-
attributeReplaced
Notification that an attribute on the HtmlElement has been replaced. Called after the attribute is replaced.- Specified by:
attributeReplacedin interfaceHtmlAttributeChangeListener- Parameters:
event- the attribute change event
-
clearCache
private void clearCache()
-