java::awt::event::FocusSource Class Reference

Inheritance diagram for java::awt::event::FocusSource:

Inheritance graph
java::awt::Componentjava::util::EventSourcejava::lang::Interfacejava::lang::ScopeAdapterjava::lang::Objectjava::lang::Syncjava::lang::Lockjava::awt::Buttonjava::awt::Canvasjava::awt::Checkboxjava::awt::Choicejava::awt::Containerjava::awt::Labeljava::awt::ListBoxjava::awt::Scrollbarjava::awt::TextComponentjava::awt::Paneljava::awt::Windowjava::awt::Dialogjava::awt::Framejava::awt::TextAreajava::awt::TextField
[legend]
Collaboration diagram for java::awt::event::FocusSource:

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 focus event sources.

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

See also:
FocusEvent

FocusListener

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

Public Member Functions

virtual void addFocusListener (const Ref< FocusListener > l)
 Adds a listener to receive focus events.
virtual void removeFocusListener (const Ref< FocusListener > l)
 Remove an focus listener.
virtual jboolean hasFocusListeners () const
 Indicate there are listeners registered.
virtual Ref< ListgetFocusListeners () const
 Returns a list of all the focus listeners registered.
virtual void processFocusEvent (const FocusEvent &e)
 Brodcast the event to all the registered focus listeners.

Protected Attributes

LinkedList listeners
 REGISTER_MEMBERS

Member Function Documentation

virtual void java::awt::event::FocusSource::addFocusListener ( const Ref< FocusListener l  )  [virtual]

Adds a listener to receive focus events.

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

virtual void java::awt::event::FocusSource::removeFocusListener ( const Ref< FocusListener l  )  [virtual]

Remove an focus listener.

Parameters:
l the listener being removed
See also:
FocusEvent

virtual jboolean java::awt::event::FocusSource::hasFocusListeners (  )  const [virtual]

Indicate there are listeners registered.

virtual Ref<List> java::awt::event::FocusSource::getFocusListeners (  )  const [virtual]

Returns a list of all the focus listeners registered.

Returns:
all FocusListeners or an empty list if no focus listeners are currently registered
See also:
addFocusListener

removeFocusListener

virtual void java::awt::event::FocusSource::processFocusEvent ( const FocusEvent e  )  [virtual]

Brodcast the event to all the registered focus listeners.

Parameters:
e the Focus Event being brocasted
See also:
FocusEvent


Member Data Documentation

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

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

Reimplemented from java::lang::Sync.

Reimplemented in java::awt::Button, java::awt::Canvas, java::awt::Checkbox, java::awt::Choice, java::awt::Dialog, java::awt::Frame, java::awt::Label, java::awt::ListBox, java::awt::Panel, 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:16 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3