java::util::PropertyChangeSource Class Reference

Inheritance diagram for java::util::PropertyChangeSource:

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::util::PropertyChangeSource:

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 property change event sources.

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

See also:
PropertyChangeEvent

PropertyChangeListener

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

Public Member Functions

 PropertyChangeSource ()
virtual void addPropertyChangeListener (const Ref< PropertyChangeListener > l)
 Adds a listener to receive property change events.
virtual void removePropertyChangeListener (const Ref< PropertyChangeListener > l)
 Remove an property change listener.
virtual jboolean hasPropertyChangeListeners () const
 Indicate there are listeners registered.
virtual Ref< ListgetPropertyChangeListeners () const
 Returns a list of all the property change listeners registered.
virtual void processPropertyChangeEvent (const PropertyChangeEvent &e)
 Brodcast the event to all the registered property change listeners.

Protected Attributes

LinkedList listeners
 REGISTER_MEMBERS

Constructor & Destructor Documentation

java::util::PropertyChangeSource::PropertyChangeSource (  ) 


Member Function Documentation

virtual void java::util::PropertyChangeSource::addPropertyChangeListener ( const Ref< PropertyChangeListener l  )  [virtual]

Adds a listener to receive property change events.

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

virtual void java::util::PropertyChangeSource::removePropertyChangeListener ( const Ref< PropertyChangeListener l  )  [virtual]

Remove an property change listener.

Parameters:
l the listener being removed
See also:
PropertyChangeEvent

virtual jboolean java::util::PropertyChangeSource::hasPropertyChangeListeners (  )  const [virtual]

Indicate there are listeners registered.

virtual Ref<List> java::util::PropertyChangeSource::getPropertyChangeListeners (  )  const [virtual]

Returns a list of all the property change listeners registered.

Returns:
all PropertyChangeListeners or an empty list if no property change listeners are currently registered
See also:
addPropertyChangeListener

removePropertyChangeListener

virtual void java::util::PropertyChangeSource::processPropertyChangeEvent ( const PropertyChangeEvent e  )  [virtual]

Brodcast the event to all the registered property change listeners.

Parameters:
e the PropertyChange Event being brocasted
See also:
PropertyChangeEvent


Member Data Documentation

LinkedList java::util::PropertyChangeSource::listeners [protected]

java::util::PropertyChangeSource::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:50 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3