java::awt::event::ComponentAdapter Class Reference

Inheritance diagram for java::awt::event::ComponentAdapter:

Inheritance graph
java::awt::event::ComponentListenerjava::util::EventListenerjava::lang::Interfacejava::lang::Object
[legend]
Collaboration diagram for java::awt::event::ComponentAdapter:

Collaboration graph
java::awt::event::ComponentListenerjava::util::EventListenerjava::lang::Interfacejava::lang::Object
[legend]

List of all members.


Detailed Description

An abstract adapter class for receiving component events.

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

Extend this class to create a ComponentEvent listener and override the methods for the events of interest. (If you implement the ComponentListener 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 your class and then register it with a component using the component's addComponentListener method. When the component's size, location, or visibility changes, the relevant method in the listener object is invoked, and the ComponentEvent is passed to it.

See also:
ComponentEvent

ComponentListener

Tutorial: Writing a Component Listener

Reference: The Java Class Libraries (update file)

Author:
Carl Quinn
Version:
1.15 01/23/03
Since:
1.1

Public Member Functions

virtual void componentResized (const ComponentEvent &e)
 Invoked when the component's size changes.
virtual void componentMoved (const ComponentEvent &e)
 Invoked when the component's position changes.
virtual void componentShown (const ComponentEvent &e)
 Invoked when the component has been made visible.
virtual void componentHidden (const ComponentEvent &e)
 Invoked when the component has been made invisible.

Member Function Documentation

virtual void java::awt::event::ComponentAdapter::componentResized ( const ComponentEvent e  )  [virtual]

Invoked when the component's size changes.

Implements java::awt::event::ComponentListener.

virtual void java::awt::event::ComponentAdapter::componentMoved ( const ComponentEvent e  )  [virtual]

Invoked when the component's position changes.

Implements java::awt::event::ComponentListener.

virtual void java::awt::event::ComponentAdapter::componentShown ( const ComponentEvent e  )  [virtual]

Invoked when the component has been made visible.

Implements java::awt::event::ComponentListener.

virtual void java::awt::event::ComponentAdapter::componentHidden ( const ComponentEvent e  )  [virtual]

Invoked when the component has been made invisible.

Implements java::awt::event::ComponentListener.


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