Package org.htmlunit.html
Class DomChangeEvent
java.lang.Object
java.util.EventObject
org.htmlunit.html.DomChangeEvent
- All Implemented Interfaces:
Serializable
This is the event class for notifications about changes to the DOM structure.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionDomChangeEvent
(DomNode parentNode, DomNode changedNode) Constructs a new DomChangeEvent from the given parent node and a changed node. -
Method Summary
Modifier and TypeMethodDescriptionReturns the node that has been added or deleted.Returns the parent of the node that was changed.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
DomChangeEvent
Constructs a new DomChangeEvent from the given parent node and a changed node.- Parameters:
parentNode
- the parent of the node that was changedchangedNode
- the node that has been added or deleted
-
-
Method Details
-
getParentNode
Returns the parent of the node that was changed.- Returns:
- the parent of the node that was changed
-
getChangedNode
Returns the node that has been added or deleted.- Returns:
- the node that has been added or deleted
-