talx x1.0.5

talx.events
Class EraseEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bytalx.events.TALEvent
          extended bytalx.events.EraseEvent
All Implemented Interfaces:
java.io.Serializable

public class EraseEvent
extends TALEvent

This class defines an erase Event in a reply pane. An erase event happens when a user uses the delete or backspace keys to alter their message text.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
EraseEvent(java.lang.Object source, java.lang.String original, java.lang.String modified)
          Constructs new EraseEvent with given source and word and character counts computed by comparing the given strings.
 
Method Summary
 int getCharacterCount()
          returns the number of non-whitespace characters deleted by this event.
 int getWordCount()
          returns the number of words deleted by this event.
 
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 Detail

EraseEvent

public EraseEvent(java.lang.Object source,
                  java.lang.String original,
                  java.lang.String modified)
Constructs new EraseEvent with given source and word and character counts computed by comparing the given strings.

Parameters:
source - the component that originated the event.
original - the string as it existed before anything was erased.
modified - the string after characters were erased.
Method Detail

getWordCount

public int getWordCount()
returns the number of words deleted by this event.


getCharacterCount

public int getCharacterCount()
returns the number of non-whitespace characters deleted by this event.


talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.