java::awt::event::MouseSource Class Reference

Inheritance diagram for java::awt::event::MouseSource:

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

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

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

See also:
MouseEvent

MouseListener

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

Public Member Functions

virtual void addMouseListener (const Ref< MouseListener > l)
 Adds a listener to receive mouse events.
virtual void removeMouseListener (const Ref< MouseListener > l)
 Remove an mouse listener.
virtual jboolean hasMouseListeners () const
 Indicate there are listeners registered.
virtual void addMouseMotionListener (const Ref< MouseMotionListener > l)
 Adds a listener to receive mouse motion events.
virtual void removeMouseMotionListener (const Ref< MouseMotionListener > l)
 Remove an mouse motion listener.
virtual jboolean hasMouseMotionListeners () const
 Indicate there are listeners registered.
virtual void addMouseWheelListener (const Ref< MouseWheelListener > l)
 Adds a listener to receive mouse wheel events.
virtual void removeMouseWheelListener (const Ref< MouseWheelListener > l)
 Remove an mouse wheel listener.
virtual jboolean hasMouseWheelListeners () const
 Indicate there are listeners registered.
virtual Ref< ListgetMouseListeners () const
 Returns a list of all the mouse listeners registered.
virtual Ref< ListgetMouseMotionListeners () const
 Returns a list of all the mouse motion listeners registered.
virtual Ref< ListgetMouseWheelListeners () const
 Returns a list of all the mouse wheel listeners registered.
virtual void processMouseEvent (const MouseEvent &e)
 Brodcast the event to all the registered mouse listeners.

Protected Attributes

LinkedList listeners
LinkedList motion_listeners
LinkedList wheel_listeners
 REGISTER_MEMBERS

Member Function Documentation

virtual void java::awt::event::MouseSource::addMouseListener ( const Ref< MouseListener l  )  [virtual]

Adds a listener to receive mouse events.

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

virtual void java::awt::event::MouseSource::removeMouseListener ( const Ref< MouseListener l  )  [virtual]

Remove an mouse listener.

Parameters:
l the listener being removed
See also:
MouseEvent

virtual jboolean java::awt::event::MouseSource::hasMouseListeners (  )  const [virtual]

Indicate there are listeners registered.

virtual void java::awt::event::MouseSource::addMouseMotionListener ( const Ref< MouseMotionListener l  )  [virtual]

Adds a listener to receive mouse motion events.

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

virtual void java::awt::event::MouseSource::removeMouseMotionListener ( const Ref< MouseMotionListener l  )  [virtual]

Remove an mouse motion listener.

Parameters:
l the listener being removed
See also:
MouseEvent

virtual jboolean java::awt::event::MouseSource::hasMouseMotionListeners (  )  const [virtual]

Indicate there are listeners registered.

virtual void java::awt::event::MouseSource::addMouseWheelListener ( const Ref< MouseWheelListener l  )  [virtual]

Adds a listener to receive mouse wheel events.

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

virtual void java::awt::event::MouseSource::removeMouseWheelListener ( const Ref< MouseWheelListener l  )  [virtual]

Remove an mouse wheel listener.

Parameters:
l the listener being removed
See also:
MouseWheelEvent

virtual jboolean java::awt::event::MouseSource::hasMouseWheelListeners (  )  const [virtual]

Indicate there are listeners registered.

virtual Ref<List> java::awt::event::MouseSource::getMouseListeners (  )  const [virtual]

Returns a list of all the mouse listeners registered.

Returns:
all MouseListeners or an empty list if no mouse listeners are currently registered
See also:
addMouseListener

removeMouseListener

virtual Ref<List> java::awt::event::MouseSource::getMouseMotionListeners (  )  const [virtual]

Returns a list of all the mouse motion listeners registered.

Returns:
all MouseMotionListeners or an empty list if no mouse motion listeners are currently registered
See also:
addMouseMotionListener

removeMouseMotionListener

virtual Ref<List> java::awt::event::MouseSource::getMouseWheelListeners (  )  const [virtual]

Returns a list of all the mouse wheel listeners registered.

Returns:
all MouseWheelListeners or an empty list if no mouse wheel listeners are currently registered
See also:
addMouseWheelListener

removeMouseWheelListener

virtual void java::awt::event::MouseSource::processMouseEvent ( const MouseEvent e  )  [virtual]

Brodcast the event to all the registered mouse listeners.

Parameters:
e the Mouse Event being brocasted
See also:
MouseEvent


Member Data Documentation

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

LinkedList java::awt::event::MouseSource::motion_listeners [protected]

LinkedList java::awt::event::MouseSource::wheel_listeners [protected]

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