fbench.dom.events
Class MutationListener
java.lang.Object
fbench.dom.ElementModel
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
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 java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
MutationListener
public MutationListener()
MutationListener
public MutationListener(org.w3c.dom.Element el)
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.