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 void
attributeAdded(HtmlAttributeChangeEvent event)
Notification that a new attribute was added to the HtmlElement.void
attributeRemoved(HtmlAttributeChangeEvent event)
Notification that an existing attribute has been removed from the HtmlElement.void
attributeReplaced(HtmlAttributeChangeEvent event)
Notification that an attribute on the HtmlElement has been replaced.private void
clearCache()
void
nodeAdded(DomChangeEvent event)
Notification that a new node was added.void
nodeDeleted(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:
nodeAdded
in 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:
nodeDeleted
in 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:
attributeAdded
in 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:
attributeRemoved
in 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:
attributeReplaced
in interfaceHtmlAttributeChangeListener
- Parameters:
event
- the attribute change event
-
clearCache
private void clearCache()
-
-