java.awt.event
Class FocusAdapter

java.lang.Object
  extended by java.awt.event.FocusAdapter
All Implemented Interfaces:
FocusListener, EventListener
Direct Known Subclasses:
BasicSplitPaneUI.FocusHandler, BasicTabbedPaneUI.FocusHandler

public abstract class FocusAdapter
extends Object
implements FocusListener

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

Since:
1.1
See Also:
FocusEvent, FocusListener

Constructor Summary
FocusAdapter()
          Do nothing default constructor for subclasses.
 
Method Summary
 void focusGained(FocusEvent event)
          Implements this method from the interface with an empty body.
 void focusLost(FocusEvent 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

FocusAdapter

public FocusAdapter()
Do nothing default constructor for subclasses.

Method Detail

focusGained

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

Specified by:
focusGained in interface FocusListener
Parameters:
event - the event, ignored in this implementation

focusLost

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

Specified by:
focusLost in interface FocusListener
Parameters:
event - the event, ignored in this implementation