java::awt::event::TextSource Class Reference

Inheritance diagram for java::awt::event::TextSource:

Inheritance graph
java::awt::TextComponentjava::util::EventSourcejava::lang::Interfacejava::lang::ScopeAdapterjava::lang::Objectjava::lang::Syncjava::lang::Lockjava::awt::TextAreajava::awt::TextField
[legend]
Collaboration diagram for java::awt::event::TextSource:

Collaboration graph
java::util::EventSourcejava::lang::Interfacejava::lang::ScopeAdapterjava::lang::Comparablejava::util::Collectionjava::lang::Objectjava::lang::ObjectRefjava::lang::Syncjava::lang::Lockjava::util::LinkedListjava::util::AbstractSequentialListjava::util::AbstractListjava::util::AbstractCollectionjava::util::List
[legend]

List of all members.


Detailed Description

The source abstract object for text event sources.

The class that is interested in broadcast an text event extends this object.

See also:
TextEvent

TextListener

Author:
Yuh-Jye Chang
Version:
1.0 07/19/04

Public Member Functions

virtual void addTextListener (const Ref< TextListener > l)
 Adds a listener to receive text events.
virtual void removeTextListener (const Ref< TextListener > l)
 Remove an text listener.
virtual jboolean hasTextListeners () const
 Indicate there are listeners registered.
virtual Ref< ListgetTextListeners () const
 Returns a list of all the text listeners registered.
virtual void processTextEvent (const TextEvent &e)
 Brodcast the event to all the registered text listeners.

Protected Attributes

LinkedList listeners
 REGISTER_MEMBERS

Member Function Documentation

virtual void java::awt::event::TextSource::addTextListener ( const Ref< TextListener l  )  [virtual]

Adds a listener to receive text events.

Parameters:
l the listener to receive events
See also:
TextEvent

virtual void java::awt::event::TextSource::removeTextListener ( const Ref< TextListener l  )  [virtual]

Remove an text listener.

Parameters:
l the listener being removed
See also:
TextEvent

virtual jboolean java::awt::event::TextSource::hasTextListeners (  )  const [virtual]

Indicate there are listeners registered.

virtual Ref<List> java::awt::event::TextSource::getTextListeners (  )  const [virtual]

Returns a list of all the text listeners registered.

Returns:
all TextListeners or an empty list if no text listeners are currently registered
See also:
addTextListener

removeTextListener

virtual void java::awt::event::TextSource::processTextEvent ( const TextEvent e  )  [virtual]

Brodcast the event to all the registered text listeners.

Parameters:
e the Text Event being brocasted
See also:
TextEvent


Member Data Documentation

LinkedList java::awt::event::TextSource::listeners [protected]

java::awt::event::TextSource::REGISTER_MEMBERS [protected]

Reimplemented from java::lang::Sync.

Reimplemented in java::awt::TextArea, and java::awt::TextField.


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