java::awt::event::TextEvent Class Reference

Inheritance diagram for java::awt::event::TextEvent:

Inheritance graph
java::awt::AWTEventjava::util::EventObjectjava::lang::Object
[legend]
Collaboration diagram for java::awt::event::TextEvent:

Collaboration graph
java::awt::AWTEventjava::util::EventObjectjava::lang::Objectjava::lang::ObjectRefjava::lang::Interfacejava::lang::Comparable
[legend]

List of all members.


Detailed Description

A semantic event which indicates that an object's text changed.

This high-level event is generated by an object (such as a TextComponent) when its text changes. The event is passed to every 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".

Author:
Georges Saab
Version:
1.14 01/23/03
See also:
java.awt.TextComponent

TextListener

Tutorial: Writing a Text Listener

Reference: The Java Class Libraries (update file)

Since:
1.1

Public Types

enum  TEXT_EVENT_ID { TEXT_FIRST = 900, TEXT_VALUE_CHANGED = TEXT_FIRST, TEXT_LAST = TEXT_VALUE_CHANGED }

Public Member Functions

 TextEvent (const ObjectRef &source=0, jint id=TEXT_VALUE_CHANGED)
 Constructs a TextEvent object.
virtual String paramString () const
 Returns a parameter string identifying this action event.

Member Enumeration Documentation

enum java::awt::event::TextEvent::TEXT_EVENT_ID

Enumerator:
TEXT_FIRST  The first number in the range of ids used for text events.
TEXT_VALUE_CHANGED  This event id indicates that object's text changed.
TEXT_LAST  The last number in the range of ids used for text events.


Constructor & Destructor Documentation

java::awt::event::TextEvent::TextEvent ( const ObjectRef source = 0,
jint  id = TEXT_VALUE_CHANGED 
)

Constructs a TextEvent object.

Note that passing in an invalid id results in unspecified behavior.

Parameters:
source the (TextComponent) object that originated the event
id an integer that identifies the event type


Member Function Documentation

virtual String java::awt::event::TextEvent::paramString (  )  const [virtual]

Returns a parameter string identifying this action event.

This method is useful for event-logging and for debugging.

Returns:
a string identifying the event and its associated command

Reimplemented from java::awt::AWTEvent.


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:19 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3