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:
  • 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