java.awt.event
Class ComponentAdapter

java.lang.Object
  extended by java.awt.event.ComponentAdapter
All Implemented Interfaces:
ComponentListener, EventListener
Direct Known Subclasses:
BasicSliderUI.ComponentHandler, BasicTreeUI.ComponentHandler, JViewport.ViewListener

public abstract class ComponentAdapter
extends Object
implements ComponentListener

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

Since:
1.1
See Also:
ComponentEvent, ComponentListener

Constructor Summary
ComponentAdapter()
          Do nothing default constructor for subclasses.
 
Method Summary
 void componentHidden(ComponentEvent event)
          Implements this method from the interface with an empty body.
 void componentMoved(ComponentEvent event)
          Implements this method from the interface with an empty body.
 void componentResized(ComponentEvent event)
          Implements this method from the interface with an empty body.
 void componentShown(ComponentEvent 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

ComponentAdapter

public ComponentAdapter()
Do nothing default constructor for subclasses.

Method Detail

componentResized

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

Specified by:
componentResized in interface ComponentListener
Parameters:
event - the event, ignored in this implementation

componentMoved

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

Specified by:
componentMoved in interface ComponentListener
Parameters:
event - the event, ignored in this implementation

componentShown

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

Specified by:
componentShown in interface ComponentListener
Parameters:
event - the event, ignored in this implementation

componentHidden

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

Specified by:
componentHidden in interface ComponentListener
Parameters:
event - the event, ignored in this implementation