Package org.htmlunit.html
Class HtmlAttributeChangeEvent
java.lang.Object
java.util.EventObject
org.htmlunit.html.HtmlAttributeChangeEvent
- All Implemented Interfaces:
Serializable
This is the event class for notifications about changes to the attributes of the
HtmlElement.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionHtmlAttributeChangeEvent
(HtmlElement element, String name, String value) Constructs a new AttributeEvent from the given element, for the given attribute name and attribute value. -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
HtmlAttributeChangeEvent
Constructs a new AttributeEvent from the given element, for the given attribute name and attribute value.- Parameters:
element
- the element that is sending the eventname
- the name of the attribute that changed on the elementvalue
- the value of the attribute that has been added, removed, or replaced
-
-
Method Details
-
getHtmlElement
Returns the HtmlElement that changed.- Returns:
- the HtmlElement that sent the event
-
getName
Returns the name of the attribute that changed on the element.- Returns:
- the name of the attribute that changed on the element
-
getValue
Returns the value of the attribute that has been added, removed, or replaced. If the attribute was added, this is the value of the attribute. If the attribute was removed, this is the value of the removed attribute. If the attribute was replaced, this is the old value of the attribute.- Returns:
- the value of the attribute that has been added, removed, or replaced
-