Package org.htmlunit.html

# Class CharacterDataChangeEvent

java.lang.Object
java.util.EventObject
org.htmlunit.html.CharacterDataChangeEvent

All Implemented Interfaces:
  `Serializable`

public class CharacterDataChangeEvent extends EventObject
This is the event class for notifications about changes to the Character Data.

See Also:
  - `CharacterDataChangeListener`
  - Serialized Form

- ## Field Summary

  ### Fields inherited from class java.util.EventObject

  `source`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CharacterDataChangeEvent(DomCharacterData characterData, String oldValue)`
  Constructs a new CharacterDataChangeEvent from the given character data and the old value.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `DomCharacterData`
  `getCharacterData()`
  Returns the character data that was changed.
  `String`
  `getOldValue()`
  Returns the old value.

  ### Methods inherited from class java.util.EventObject

  `getSource, toString`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### CharacterDataChangeEvent

    public CharacterDataChangeEvent(DomCharacterData characterData, String oldValue)
    Constructs a new CharacterDataChangeEvent from the given character data and the old value.
    Parameters:
      `characterData` - the character data which is changed
      `oldValue` - the old value

- ## Method Details

  - ### getCharacterData

    public DomCharacterData getCharacterData()
    Returns the character data that was changed.
    Returns:
      the character data that was changed

  - ### getOldValue

    public String getOldValue()
    Returns the old value.
    Returns:
      the old value