fbench.dom.events
Class MutationListener

java.lang.Object
  extended by fbench.dom.ElementModel
      extended by fbench.dom.events.MutationListener
All Implemented Interfaces:
org.w3c.dom.events.EventListener
Direct Known Subclasses:
ECC, FBNetwork, System

public abstract class MutationListener
extends ElementModel
implements org.w3c.dom.events.EventListener

An ElementModel that listens for MutationEvents from its Element (which may include events that have bubbled up from the Element's children).

Version:
20051111/JHC
Author:
JHC

Constructor Summary
MutationListener()
           
MutationListener(org.w3c.dom.Element el)
           
 
Method Summary
static MutationListener forElement(org.w3c.dom.Element el)
          Returns an ElementModel in the "dom." package encapsulating the given DOM Element, or null if no such ElementModel exists.
 void handleEvent(org.w3c.dom.events.Event evt)
           
 void setElement(org.w3c.dom.Element el)
           
 
Methods inherited from class fbench.dom.ElementModel
equals, forElement, getComment, getElement, getName, getType, isDigit, isLetter, isName, toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutationListener

public MutationListener()

MutationListener

public MutationListener(org.w3c.dom.Element el)
Method Detail

setElement

public void setElement(org.w3c.dom.Element el)
Overrides:
setElement in class ElementModel

handleEvent

public void handleEvent(org.w3c.dom.events.Event evt)
Specified by:
handleEvent in interface org.w3c.dom.events.EventListener

forElement

public static MutationListener forElement(org.w3c.dom.Element el)
Returns an ElementModel in the "dom." package encapsulating the given DOM Element, or null if no such ElementModel exists.

Parameters:
el - The DOM Element for which a model is requested.