java::awt::event::HierarchySource Class Reference

Inheritance diagram for java::awt::event::HierarchySource:

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::HierarchySource:

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

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

See also:
HierarchyEvent

HierarchyListener

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

Public Member Functions

virtual void addHierarchyListener (const Ref< HierarchyListener > l)
 Adds a listener to receive hierarchy events.
virtual void removeHierarchyListener (const Ref< HierarchyListener > l)
 Remove an hierarchy listener.
virtual jboolean hasHierarchyListeners () const
 Indicate there are listeners registered.
virtual void addHierarchyBoundsListener (const Ref< HierarchyBoundsListener > l)
 Adds a listener to receive hierarchy bounds events.
virtual void removeHierarchyBoundsListener (const Ref< HierarchyBoundsListener > l)
 Remove an hierarchy bounds listener.
virtual jboolean hasHierarchyBoundsListeners () const
 Indicate there are listeners registered.
virtual Ref< ListgetHierarchyListeners () const
 Returns a list of all the hierarchy listeners registered.
virtual Ref< ListgetHierarchyBoundsListeners () const
 Returns a list of all the hierarchy listeners registered.
virtual void processHierarchyEvent (const HierarchyEvent &e)
 Brodcast the event to all the registered hierarchy listeners.

Protected Attributes

LinkedList listeners
LinkedList bounds_listeners
 REGISTER_MEMBERS

Member Function Documentation

virtual void java::awt::event::HierarchySource::addHierarchyListener ( const Ref< HierarchyListener l  )  [virtual]

Adds a listener to receive hierarchy events.

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

virtual void java::awt::event::HierarchySource::removeHierarchyListener ( const Ref< HierarchyListener l  )  [virtual]

Remove an hierarchy listener.

Parameters:
l the listener being removed
See also:
HierarchyEvent

virtual jboolean java::awt::event::HierarchySource::hasHierarchyListeners (  )  const [virtual]

Indicate there are listeners registered.

virtual void java::awt::event::HierarchySource::addHierarchyBoundsListener ( const Ref< HierarchyBoundsListener l  )  [virtual]

Adds a listener to receive hierarchy bounds events.

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

virtual void java::awt::event::HierarchySource::removeHierarchyBoundsListener ( const Ref< HierarchyBoundsListener l  )  [virtual]

Remove an hierarchy bounds listener.

Parameters:
l the listener being removed
See also:
HierarchyEvent

virtual jboolean java::awt::event::HierarchySource::hasHierarchyBoundsListeners (  )  const [virtual]

Indicate there are listeners registered.

virtual Ref<List> java::awt::event::HierarchySource::getHierarchyListeners (  )  const [virtual]

Returns a list of all the hierarchy listeners registered.

Returns:
all HierarchyListeners or an empty list if no hierarchy listeners are currently registered
See also:
addHierarchyListener

removeHierarchyListener

virtual Ref<List> java::awt::event::HierarchySource::getHierarchyBoundsListeners (  )  const [virtual]

Returns a list of all the hierarchy listeners registered.

Returns:
all HierarchyListeners or an empty list if no hierarchy listeners are currently registered
See also:
addHierarchyListener

removeHierarchyListener

virtual void java::awt::event::HierarchySource::processHierarchyEvent ( const HierarchyEvent e  )  [virtual]

Brodcast the event to all the registered hierarchy listeners.

Parameters:
e the Hierarchy Event being brocasted
See also:
HierarchyEvent


Member Data Documentation

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

LinkedList java::awt::event::HierarchySource::bounds_listeners [protected]

java::awt::event::HierarchySource::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