java::awt::event::ContainerAdapter Class Reference

Inheritance diagram for java::awt::event::ContainerAdapter:

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

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

List of all members.


Detailed Description

An abstract adapter class for receiving container events.

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

Extend this class to create a ContainerEvent listener and override the methods for the events of interest. (If you implement the ContainerListener 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 component using the component's addContainerListener method. When the container's contents change because a component has been added or removed, the relevant method in the listener object is invoked, and the ContainerEvent is passed to it.

See also:
ContainerEvent

ContainerListener

Tutorial: Writing a Container Listener

Reference: The Java Class Libraries (update file)

Author:
Amy Fowler
Version:
1.11 01/23/03
Since:
1.1

Public Member Functions

virtual void componentAdded (const ContainerEvent &e)
 Invoked when a component has been added to the container.
virtual void componentRemoved (const ContainerEvent &e)
 Invoked when a component has been removed from the container.

Member Function Documentation

virtual void java::awt::event::ContainerAdapter::componentAdded ( const ContainerEvent e  )  [virtual]

Invoked when a component has been added to the container.

Implements java::awt::event::ContainerListener.

virtual void java::awt::event::ContainerAdapter::componentRemoved ( const ContainerEvent e  )  [virtual]

Invoked when a component has been removed from the container.

Implements java::awt::event::ContainerListener.


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