java::awt::event::WindowSource Class Reference

Inheritance diagram for java::awt::event::WindowSource:

Inheritance graph
java::awt::Windowjava::util::EventSourcejava::lang::Interfacejava::lang::ScopeAdapterjava::lang::Objectjava::lang::Syncjava::lang::Lockjava::awt::Dialogjava::awt::Frame
[legend]
Collaboration diagram for java::awt::event::WindowSource:

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

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

See also:
WindowEvent

WindowListener

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

Public Member Functions

virtual void addWindowListener (const Ref< WindowListener > l)
 Adds a listener to receive window events.
virtual void removeWindowListener (const Ref< WindowListener > l)
 Remove an window listener.
virtual jboolean hasWindowListeners () const
 Indicate there are listeners registered.
virtual void addWindowFocusListener (const Ref< WindowFocusListener > l)
 Adds a listener to receive window focus events.
virtual void removeWindowFocusListener (const Ref< WindowFocusListener > l)
 Remove an window focus listener.
virtual jboolean hasWindowFocusListeners () const
 Indicate there are listeners registered.
virtual void addWindowStateListener (const Ref< WindowStateListener > l)
 Adds a listener to receive window state events.
virtual void removeWindowStateListener (const Ref< WindowStateListener > l)
 Remove an window state listener.
virtual jboolean hasWindowStateListeners () const
 Indicate there are listeners registered.
virtual Ref< ListgetWindowListeners () const
 Returns a list of all the window listeners registered.
virtual Ref< ListgetWindowFocusListeners () const
 Returns a list of all the window focus listeners registered.
virtual Ref< ListgetWindowStateListeners () const
 Returns a list of all the window state listeners registered.
virtual void processWindowEvent (const WindowEvent &e)
 Brodcast the event to all the registered window listeners.

Protected Attributes

LinkedList listeners
LinkedList focus_listeners
LinkedList state_listeners
 REGISTER_MEMBERS

Member Function Documentation

virtual void java::awt::event::WindowSource::addWindowListener ( const Ref< WindowListener l  )  [virtual]

Adds a listener to receive window events.

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

virtual void java::awt::event::WindowSource::removeWindowListener ( const Ref< WindowListener l  )  [virtual]

Remove an window listener.

Parameters:
l the listener being removed
See also:
WindowEvent

virtual jboolean java::awt::event::WindowSource::hasWindowListeners (  )  const [virtual]

Indicate there are listeners registered.

virtual void java::awt::event::WindowSource::addWindowFocusListener ( const Ref< WindowFocusListener l  )  [virtual]

Adds a listener to receive window focus events.

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

virtual void java::awt::event::WindowSource::removeWindowFocusListener ( const Ref< WindowFocusListener l  )  [virtual]

Remove an window focus listener.

Parameters:
l the listener being removed
See also:
WindowEvent

virtual jboolean java::awt::event::WindowSource::hasWindowFocusListeners (  )  const [virtual]

Indicate there are listeners registered.

virtual void java::awt::event::WindowSource::addWindowStateListener ( const Ref< WindowStateListener l  )  [virtual]

Adds a listener to receive window state events.

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

virtual void java::awt::event::WindowSource::removeWindowStateListener ( const Ref< WindowStateListener l  )  [virtual]

Remove an window state listener.

Parameters:
l the listener being removed
See also:
WindowEvent

virtual jboolean java::awt::event::WindowSource::hasWindowStateListeners (  )  const [virtual]

Indicate there are listeners registered.

virtual Ref<List> java::awt::event::WindowSource::getWindowListeners (  )  const [virtual]

Returns a list of all the window listeners registered.

Returns:
all WindowListeners or an empty list if no window listeners are currently registered
See also:
addWindowListener

removeWindowListener

virtual Ref<List> java::awt::event::WindowSource::getWindowFocusListeners (  )  const [virtual]

Returns a list of all the window focus listeners registered.

Returns:
all WindowFocusListeners or an empty list if no window listeners are currently registered
See also:
addWindowFocusListener

removeWindowFocusListener

virtual Ref<List> java::awt::event::WindowSource::getWindowStateListeners (  )  const [virtual]

Returns a list of all the window state listeners registered.

Returns:
all WindowStateListeners or an empty list if no window listeners are currently registered
See also:
addWindowStateListener

removeWindowStateListener

virtual void java::awt::event::WindowSource::processWindowEvent ( const WindowEvent e  )  [virtual]

Brodcast the event to all the registered window listeners.

Parameters:
e the Window Event being brocasted
See also:
WindowEvent


Member Data Documentation

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

LinkedList java::awt::event::WindowSource::focus_listeners [protected]

LinkedList java::awt::event::WindowSource::state_listeners [protected]

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

Reimplemented from java::lang::Sync.

Reimplemented in java::awt::Dialog, and java::awt::Frame.


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