java::awt::event::ContainerSource Class Reference

Inheritance diagram for java::awt::event::ContainerSource:

Inheritance graph
java::awt::Containerjava::util::EventSourcejava::lang::Interfacejava::lang::ScopeAdapterjava::lang::Objectjava::lang::Syncjava::lang::Lockjava::awt::Paneljava::awt::Windowjava::awt::Dialogjava::awt::Frame
[legend]
Collaboration diagram for java::awt::event::ContainerSource:

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

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

See also:
ContainerEvent

ContainerListener

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

Public Member Functions

virtual void addContainerListener (const Ref< ContainerListener > l)
 Adds a listener to receive container events.
virtual void removeContainerListener (const Ref< ContainerListener > l)
 Remove an container listener.
virtual jboolean hasContainerListeners () const
 Indicate there are listeners registered.
virtual Ref< ListgetContainerListeners () const
 Returns a list of all the container listeners registered.
virtual void processContainerEvent (const ContainerEvent &e)
 Brodcast the event to all the registered container listeners.

Protected Attributes

LinkedList listeners
 REGISTER_MEMBERS

Member Function Documentation

virtual void java::awt::event::ContainerSource::addContainerListener ( const Ref< ContainerListener l  )  [virtual]

Adds a listener to receive container events.

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

virtual void java::awt::event::ContainerSource::removeContainerListener ( const Ref< ContainerListener l  )  [virtual]

Remove an container listener.

Parameters:
l the listener being removed
See also:
ContainerEvent

virtual jboolean java::awt::event::ContainerSource::hasContainerListeners (  )  const [virtual]

Indicate there are listeners registered.

virtual Ref<List> java::awt::event::ContainerSource::getContainerListeners (  )  const [virtual]

Returns a list of all the container listeners registered.

Returns:
all ContainerListeners or an empty list if no container listeners are currently registered
See also:
addContainerListener

removeContainerListener

virtual void java::awt::event::ContainerSource::processContainerEvent ( const ContainerEvent e  )  [virtual]

Brodcast the event to all the registered container listeners.

Parameters:
e the Container Event being brocasted
See also:
ContainerEvent


Member Data Documentation

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

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

Reimplemented from java::lang::Sync.

Reimplemented in java::awt::Dialog, java::awt::Frame, and java::awt::Panel.


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