java::awt::event::PaintSource Class Reference

Inheritance diagram for java::awt::event::PaintSource:

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

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

The class that is interested in broadcast a paint event extends this object.

See also:
PaintEvent

PaintListener

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

Public Member Functions

virtual void addPaintListener (const Ref< PaintListener > l)
 Adds a listener to receive text events.
virtual void removePaintListener (const Ref< PaintListener > l)
 Remove an text listener.
virtual jboolean hasPaintListeners () const
 Indicate there are listeners registered.
virtual Ref< ListgetPaintListeners () const
 Returns a list of all the text listeners registered.
virtual void processPaintEvent (PaintEvent &e)
 Brodcast the event to all the registered text listeners.

Protected Attributes

LinkedList listeners
 REGISTER_MEMBERS

Member Function Documentation

virtual void java::awt::event::PaintSource::addPaintListener ( const Ref< PaintListener l  )  [virtual]

Adds a listener to receive text events.

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

virtual void java::awt::event::PaintSource::removePaintListener ( const Ref< PaintListener l  )  [virtual]

Remove an text listener.

Parameters:
l the listener being removed
See also:
PaintEvent

virtual jboolean java::awt::event::PaintSource::hasPaintListeners (  )  const [virtual]

Indicate there are listeners registered.

virtual Ref<List> java::awt::event::PaintSource::getPaintListeners (  )  const [virtual]

Returns a list of all the text listeners registered.

Returns:
all PaintListeners or an empty list if no text listeners are currently registered
See also:
addPaintListener

removePaintListener

virtual void java::awt::event::PaintSource::processPaintEvent ( PaintEvent e  )  [virtual]

Brodcast the event to all the registered text listeners.

Parameters:
e the Paint Event being brocasted
See also:
PaintEvent


Member Data Documentation

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

java::awt::event::PaintSource::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:19 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3