Package org.htmlunit.html
Class AbstractDomNodeList.DomHtmlAttributeChangeListenerImpl
- java.lang.Object
-
- org.htmlunit.html.AbstractDomNodeList.DomHtmlAttributeChangeListenerImpl
-
- All Implemented Interfaces:
java.io.Serializable,DomChangeListener,HtmlAttributeChangeListener
- Enclosing class:
- AbstractDomNodeList<E extends DomNode>
private static final class AbstractDomNodeList.DomHtmlAttributeChangeListenerImpl extends java.lang.Object implements DomChangeListener, HtmlAttributeChangeListener
DOM change listener which clears the node cache when necessary.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ref.WeakReference<AbstractDomNodeList<?>>nodeList_
-
Constructor Summary
Constructors Constructor Description DomHtmlAttributeChangeListenerImpl(AbstractDomNodeList<?> nodeList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattributeAdded(HtmlAttributeChangeEvent event)Notification that a new attribute was added to the HtmlElement.voidattributeRemoved(HtmlAttributeChangeEvent event)Notification that an existing attribute has been removed from the HtmlElement.voidattributeReplaced(HtmlAttributeChangeEvent event)Notification that an attribute on the HtmlElement has been replaced.private voidclearCache()voidnodeAdded(DomChangeEvent event)Notification that a new node was added.voidnodeDeleted(DomChangeEvent event)Notification that a new node was deleted.
-
-
-
Field Detail
-
nodeList_
private final transient java.lang.ref.WeakReference<AbstractDomNodeList<?>> nodeList_
-
-
Constructor Detail
-
DomHtmlAttributeChangeListenerImpl
DomHtmlAttributeChangeListenerImpl(AbstractDomNodeList<?> nodeList)
-
-
Method Detail
-
nodeAdded
public void nodeAdded(DomChangeEvent event)
Notification that a new node was added. Called after the node is added.- Specified by:
nodeAddedin interfaceDomChangeListener- Parameters:
event- the node addition event
-
nodeDeleted
public void nodeDeleted(DomChangeEvent event)
Notification that a new node was deleted. Called after the node is deleted.- Specified by:
nodeDeletedin interfaceDomChangeListener- Parameters:
event- the node deletion event
-
attributeAdded
public void attributeAdded(HtmlAttributeChangeEvent event)
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
public void attributeRemoved(HtmlAttributeChangeEvent event)
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
public void attributeReplaced(HtmlAttributeChangeEvent event)
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()
-
-