Package org.htmlunit.javascript.host.dom
Class AbstractList.DomHtmlAttributeChangeListenerImpl
- java.lang.Object
-
- org.htmlunit.javascript.host.dom.AbstractList.DomHtmlAttributeChangeListenerImpl
-
- All Implemented Interfaces:
java.io.Serializable
,DomChangeListener
,HtmlAttributeChangeListener
- Enclosing class:
- AbstractList
private static final class AbstractList.DomHtmlAttributeChangeListenerImpl extends java.lang.Object implements DomChangeListener, HtmlAttributeChangeListener
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ref.WeakReference<AbstractList>
nodeList_
-
Constructor Summary
Constructors Constructor Description DomHtmlAttributeChangeListenerImpl(AbstractList 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()
private void
handleChangeOnCache(HtmlAttributeChangeEvent event)
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<AbstractList> nodeList_
-
-
Constructor Detail
-
DomHtmlAttributeChangeListenerImpl
DomHtmlAttributeChangeListenerImpl(AbstractList 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
-
handleChangeOnCache
private void handleChangeOnCache(HtmlAttributeChangeEvent event)
-
clearCache
private void clearCache()
-
-