java.awt.event
Class TextEvent
java.lang.Object
|
+--java.util.EventObject
|
+--java.awt.AWTEvent
|
+--java.awt.event.TextEvent
This event is generated when a text box changes contents. This is an
abstraction that distills a large number of individual mouse or keyboard
events into a simpler "text changed" event.
Since:Author:- Aaron M. Renn <arenn@urbanophile.com>
See Also:
TEXT_FIRST
public static final int TEXT_FIRST
This is the first id in the range of event ids used by this class.
TEXT_LAST
public static final int TEXT_LAST
This is the last id in the range of event ids used by this class.
TEXT_VALUE_CHANGED
public static final int TEXT_VALUE_CHANGED
This event id indicates that the text of an object has changed.
TextEvent
public TextEvent(java.lang.Object source, int id)
Initializes a new instance of TextEvent
with the specified
source and id. Note that an invalid id leads to unspecified results.
Parameters:
Throws:
paramString
public String paramString()
Returns a string identifying this event. This is "TEXT_VALUE_CHANGED".
Returns:
- a string identifying this event