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 Details

  • Constructor Details

    • DomHtmlAttributeChangeListenerImpl

      DomHtmlAttributeChangeListenerImpl(AbstractDomNodeList<?> nodeList)
  • Method Details

    • nodeAdded

      public void nodeAdded(DomChangeEvent event)
      Notification that a new node was added. Called after the node is added.
      Specified by:
      nodeAdded in interface DomChangeListener
      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 interface DomChangeListener
      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 interface HtmlAttributeChangeListener
      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 interface HtmlAttributeChangeListener
      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 interface HtmlAttributeChangeListener
      Parameters:
      event - the attribute change event
    • clearCache

      private void clearCache()