public abstract class FocusAdapter extends Object implements FocusListener
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.FocusEvent
,
FocusListener
Constructor and Description |
---|
FocusAdapter()
Do nothing default constructor for subclasses.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public FocusAdapter()
public void focusGained(FocusEvent event)
focusGained
in interface FocusListener
event
- the event, ignored in this implementationpublic void focusLost(FocusEvent event)
focusLost
in interface FocusListener
event
- the event, ignored in this implementation