Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.awt.event

Class TextEvent

java.lang.Object
|
+--java.util.EventObject
   |
   +--java.awt.AWTEvent
      |
      +--java.awt.event.TextEvent


public class TextEvent

extends AWTEvent

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:See Also:

Field Summary

static intTEXT_FIRST

This is the first id in the range of event ids used by this class.
static intTEXT_LAST

This is the last id in the range of event ids used by this class.
static intTEXT_VALUE_CHANGED

This event id indicates that the text of an object has changed.

Constructor Summary

TextEvent(java.lang.Object source, int id)

Initializes a new instance of TextEvent with the specified source and id.

Method Summary

java.lang.StringparamString()

Returns a string identifying this event.

Field Details

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.


Constructor Details

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:


Method Details

paramString

public String paramString()

Returns a string identifying this event. This is "TEXT_VALUE_CHANGED".

Returns: