java::awt::event::WindowAdapter Class Reference

Inheritance diagram for java::awt::event::WindowAdapter:

Inheritance graph
java::awt::event::WindowListenerjava::util::EventListenerjava::awt::event::WindowFocusListenerjava::awt::event::WindowStateListenerjava::lang::Interfacejava::lang::Object
[legend]
Collaboration diagram for java::awt::event::WindowAdapter:

Collaboration graph
java::awt::event::WindowListenerjava::util::EventListenerjava::awt::event::WindowFocusListenerjava::awt::event::WindowStateListenerjava::lang::Interfacejava::lang::Object
[legend]

List of all members.


Detailed Description

An abstract adapter class for receiving window events.

The methods in this class are empty. This class exists as convenience for creating listener objects.

Extend this class to create a WindowEvent listener and override the methods for the events of interest. (If you implement the WindowListener interface, you have to define all of the methods in it. This abstract class defines null methods for them all, so you can only have to define methods for events you care about.)

Create a listener object using the extended class and then register it with a Window using the window's addWindowListener method. When the window's status changes by virtue of being opened, closed, activated or deactivated, iconified or deiconified, the relevant method in the listener object is invoked, and the WindowEvent is passed to it.

See also:
WindowEvent

WindowListener

Tutorial: Writing a Window Listener

Reference: The Java Class Libraries (update file)

Author:
Carl Quinn

Amy Fowler

David Mendenhall

Version:
1.19, 01/23/03
Since:
1.1

Public Member Functions

virtual void windowOpened (const WindowEvent &e)
 Invoked the first time a window is made visible.
virtual void windowClosing (const WindowEvent &e)
 Invoked when the user attempts to close the window from the window's system menu.
virtual void windowClosed (const WindowEvent &e)
 Invoked when a window has been closed as the result of calling dispose on the window.
virtual void windowIconified (const WindowEvent &e)
 Invoked when a window is changed from a normal to a minimized state.
virtual void windowDeiconified (const WindowEvent &e)
 Invoked when a window is changed from a minimized to a normal state.
virtual void windowActivated (const WindowEvent &e)
 Invoked when the Window is set to be the active Window.
virtual void windowDeactivated (const WindowEvent &e)
 Invoked when a Window is no longer the active Window.
virtual void windowGainedFocus (const WindowEvent &e)
 Invoked when the Window is set to be the focused Window, which means that the Window, or one of its subcomponents, will receive keyboard events.
virtual void windowLostFocus (const WindowEvent &e)
 Invoked when the Window is no longer the focused Window, which means that keyboard events will no longer be delivered to the Window or any of its subcomponents.
virtual void windowStateChanged (const WindowEvent &e)
 Invoked when window state is changed.

Member Function Documentation

virtual void java::awt::event::WindowAdapter::windowOpened ( const WindowEvent e  )  [virtual]

Invoked the first time a window is made visible.

Implements java::awt::event::WindowListener.

virtual void java::awt::event::WindowAdapter::windowClosing ( const WindowEvent e  )  [virtual]

Invoked when the user attempts to close the window from the window's system menu.

If the program does not explicitly hide or dispose the window while processing this event, the window close operation will be cancelled.

Implements java::awt::event::WindowListener.

virtual void java::awt::event::WindowAdapter::windowClosed ( const WindowEvent e  )  [virtual]

Invoked when a window has been closed as the result of calling dispose on the window.

Implements java::awt::event::WindowListener.

virtual void java::awt::event::WindowAdapter::windowIconified ( const WindowEvent e  )  [virtual]

Invoked when a window is changed from a normal to a minimized state.

For many platforms, a minimized window is displayed as the icon specified in the window's iconImage property.

See also:
java.awt.Frame::setIconImage

Implements java::awt::event::WindowListener.

virtual void java::awt::event::WindowAdapter::windowDeiconified ( const WindowEvent e  )  [virtual]

Invoked when a window is changed from a minimized to a normal state.

Implements java::awt::event::WindowListener.

virtual void java::awt::event::WindowAdapter::windowActivated ( const WindowEvent e  )  [virtual]

Invoked when the Window is set to be the active Window.

Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.

Implements java::awt::event::WindowListener.

virtual void java::awt::event::WindowAdapter::windowDeactivated ( const WindowEvent e  )  [virtual]

Invoked when a Window is no longer the active Window.

Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.

Implements java::awt::event::WindowListener.

virtual void java::awt::event::WindowAdapter::windowGainedFocus ( const WindowEvent e  )  [virtual]

Invoked when the Window is set to be the focused Window, which means that the Window, or one of its subcomponents, will receive keyboard events.

Implements java::awt::event::WindowFocusListener.

virtual void java::awt::event::WindowAdapter::windowLostFocus ( const WindowEvent e  )  [virtual]

Invoked when the Window is no longer the focused Window, which means that keyboard events will no longer be delivered to the Window or any of its subcomponents.

Implements java::awt::event::WindowFocusListener.

virtual void java::awt::event::WindowAdapter::windowStateChanged ( const WindowEvent e  )  [virtual]

Invoked when window state is changed.

Implements java::awt::event::WindowStateListener.


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