public abstract class ComponentAdapter extends Object implements ComponentListener
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.ComponentEvent
,
ComponentListener
Constructor and Description |
---|
ComponentAdapter()
Do nothing default constructor for subclasses.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public ComponentAdapter()
public void componentResized(ComponentEvent event)
componentResized
in interface ComponentListener
event
- the event, ignored in this implementationpublic void componentMoved(ComponentEvent event)
componentMoved
in interface ComponentListener
event
- the event, ignored in this implementationpublic void componentShown(ComponentEvent event)
componentShown
in interface ComponentListener
event
- the event, ignored in this implementationpublic void componentHidden(ComponentEvent event)
componentHidden
in interface ComponentListener
event
- the event, ignored in this implementation