java::awt::event::ComponentListener Class Reference

Inheritance diagram for java::awt::event::ComponentListener:

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

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

List of all members.


Detailed Description

The listener interface for receiving component events.

The class that is interested in processing a component event either implements this interface (and all the methods it contains) or extends the abstract ComponentAdapter class (overriding only the methods of interest). The listener object created from that class is then registered 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.

Component events are provided for notification purposes ONLY; The AWT will automatically handle component moves and resizes internally so that GUI layout works properly regardless of whether a program registers a ComponentListener or not.

See also:
ComponentAdapter

ComponentEvent

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)=0
 Invoked when the component's size changes.
virtual void componentMoved (const ComponentEvent &e)=0
 Invoked when the component's position changes.
virtual void componentShown (const ComponentEvent &e)=0
 Invoked when the component has been made visible.
virtual void componentHidden (const ComponentEvent &e)=0
 Invoked when the component has been made invisible.

Member Function Documentation

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

Invoked when the component's size changes.

Implemented in java::awt::event::ComponentAdapter.

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

Invoked when the component's position changes.

Implemented in java::awt::event::ComponentAdapter.

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

Invoked when the component has been made visible.

Implemented in java::awt::event::ComponentAdapter.

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

Invoked when the component has been made invisible.

Implemented in java::awt::event::ComponentAdapter.


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