java.awt.event
Class ContainerAdapter

java.lang.Object
  extended by java.awt.event.ContainerAdapter
All Implemented Interfaces:
ContainerListener, EventListener

public abstract class ContainerAdapter
extends Object
implements ContainerListener

This class implements ContainerListener and implements all methods with empty bodies. This allows a listener interested in implementing only a subset of the ContainerListener interface to extend this class and override only the desired methods.

Since:
1.1
See Also:
ContainerEvent, ContainerListener

Constructor Summary
ContainerAdapter()
          Do nothing default constructor for subclasses.
 
Method Summary
 void componentAdded(ContainerEvent event)
          Implements this method from the interface with an empty body.
 void componentRemoved(ContainerEvent event)
          Implements this method from the interface with an empty body.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerAdapter

public ContainerAdapter()
Do nothing default constructor for subclasses.

Method Detail

componentAdded

public void componentAdded(ContainerEvent event)
Implements this method from the interface with an empty body.

Specified by:
componentAdded in interface ContainerListener
Parameters:
event - the event, ignored in this implementation

componentRemoved

public void componentRemoved(ContainerEvent event)
Implements this method from the interface with an empty body.

Specified by:
componentRemoved in interface ContainerListener
Parameters:
event - the event, ignored in this implementation