java::awt::event::AdjustmentSource Class Reference

Inheritance diagram for java::awt::event::AdjustmentSource:

Inheritance graph
java::awt::Scrollbarjava::util::EventSourcejava::lang::Interfacejava::lang::ScopeAdapterjava::lang::Objectjava::lang::Syncjava::lang::Lock
[legend]
Collaboration diagram for java::awt::event::AdjustmentSource:

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

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

See also:
AdjustmentEvent

AdjustmentListener

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

Public Member Functions

virtual void addAdjustmentListener (const Ref< AdjustmentListener > l)
 Adds a listener to receive adjustment events.
virtual void removeAdjustmentListener (const Ref< AdjustmentListener > l)
 Remove an adjustment listener.
virtual jboolean hasAdjustmentListeners () const
 Indicate there are listeners registered.
virtual Ref< ListgetAdjustmentListeners () const
 Returns a list of all the adjustment listeners registered.
virtual void processAdjustmentEvent (const AdjustmentEvent &e)
 Brodcast the event to all the registered adjustment listeners.

Protected Attributes

LinkedList listeners
 REGISTER_MEMBERS

Member Function Documentation

virtual void java::awt::event::AdjustmentSource::addAdjustmentListener ( const Ref< AdjustmentListener l  )  [virtual]

Adds a listener to receive adjustment events.

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

virtual void java::awt::event::AdjustmentSource::removeAdjustmentListener ( const Ref< AdjustmentListener l  )  [virtual]

Remove an adjustment listener.

Parameters:
l the listener being removed
See also:
AdjustmentEvent

virtual jboolean java::awt::event::AdjustmentSource::hasAdjustmentListeners (  )  const [virtual]

Indicate there are listeners registered.

virtual Ref<List> java::awt::event::AdjustmentSource::getAdjustmentListeners (  )  const [virtual]

Returns a list of all the adjustment listeners registered.

Returns:
all AdjustmentListeners or an empty list if no adjustment listeners are currently registered
See also:
addAdjustmentListener

removeAdjustmentListener

virtual void java::awt::event::AdjustmentSource::processAdjustmentEvent ( const AdjustmentEvent e  )  [virtual]

Brodcast the event to all the registered adjustment listeners.

Parameters:
e the Adjustment Event being brocasted
See also:
AdjustmentEvent


Member Data Documentation

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

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

Reimplemented from java::lang::Sync.


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