TextListener object which registered to receive such
events using the component's addTextListener method.
The object that implements the TextListener interface gets
this TextEvent when the event occurs. The listener is
spared the details of processing individual mouse movements and key strokes
Instead, it can process a "meaningful" (semantic) event like "text changed".
An unspecified behavior will be caused if the id parameter
of any particular TextEvent instance is not
in the range from TEXT_FIRST to TEXT_LAST.
java.awt.TextComponent , TextListener
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.1 for interoperability.
|
| public static final int | TEXT_FIRST
The first number in the range of ids used for text events. |
| public static final int | TEXT_LAST
The last number in the range of ids used for text events. |
| public static final int | TEXT_VALUE_CHANGED
This event id indicates that object's text changed. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: a string identifying the event and its attributesOverrides java. Returns a parameter string identifying this text event. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. Use serialVersionUID from JDK 1.1 for interoperability. | |
| TEXT_FIRST | back to summary |
|---|---|
| public static final int TEXT_FIRST The first number in the range of ids used for text events. | |
| TEXT_LAST | back to summary |
|---|---|
| public static final int TEXT_LAST The last number in the range of ids used for text events. | |
| TEXT_VALUE_CHANGED | back to summary |
|---|---|
| public static final int TEXT_VALUE_CHANGED This event id indicates that object's text changed. | |
| TextEvent | back to summary |
|---|---|
| public TextEvent(Object source, int id) Constructs a This method throws an
| |
| paramString | back to summary |
|---|---|
| public String paramString() Overrides java. Returns a parameter string identifying this text event. This method is useful for event-logging and for debugging.
| |