java.awt.event
public abstract class WindowAdapter extends Object implements WindowListener, WindowStateListener, WindowFocusListener
WindowListener
,
WindowStateListener
, and WindowFocusListener
, and
implements all methods with empty bodies. This allows a listener
interested in listening to only a subset of any WindowEvent
actions to extend this class and override only the desired methods.ComponentEvent
,
ComponentListener
Constructor and Description |
---|
WindowAdapter()
Do nothing default constructor for subclasses.
|
Modifier and Type | Method and Description |
---|---|
void |
windowActivated(WindowEvent event)
Implements this method from the interface with an empty method body.
|
void |
windowClosed(WindowEvent event)
Implements this method from the interface with an empty method body.
|
void |
windowClosing(WindowEvent event)
Implements this method from the interface with an empty method body.
|
void |
windowDeactivated(WindowEvent event)
Implements this method from the interface with an empty method body.
|
void |
windowDeiconified(WindowEvent event)
Implements this method from the interface with an empty method body.
|
void |
windowGainedFocus(WindowEvent event)
Implements this method from the interface with an empty method body.
|
void |
windowIconified(WindowEvent event)
Implements this method from the interface with an empty method body.
|
void |
windowLostFocus(WindowEvent event)
Implements this method from the interface with an empty method body.
|
void |
windowOpened(WindowEvent event)
Implements this method from the interface with an empty method body.
|
void |
windowStateChanged(WindowEvent event)
Implements this method from the interface with an empty method body.
|
public WindowAdapter()
public void windowOpened(WindowEvent event)
windowOpened
in interface WindowListener
event
- the event, ignored in this implementationpublic void windowClosing(WindowEvent event)
windowClosing
in interface WindowListener
event
- the event, ignored in this implementationpublic void windowClosed(WindowEvent event)
windowClosed
in interface WindowListener
event
- the event, ignored in this implementationpublic void windowIconified(WindowEvent event)
windowIconified
in interface WindowListener
event
- the event, ignored in this implementationFrame.setIconImage(Image)
public void windowDeiconified(WindowEvent event)
windowDeiconified
in interface WindowListener
event
- the event, ignored in this implementationpublic void windowActivated(WindowEvent event)
windowActivated
in interface WindowListener
event
- the event, ignored in this implementationpublic void windowDeactivated(WindowEvent event)
windowDeactivated
in interface WindowListener
event
- the event, ignored in this implementationpublic void windowStateChanged(WindowEvent event)
windowStateChanged
in interface WindowStateListener
event
- the event, ignored in this implementationpublic void windowGainedFocus(WindowEvent event)
windowGainedFocus
in interface WindowFocusListener
event
- the event, ignored in this implementationpublic void windowLostFocus(WindowEvent event)
windowLostFocus
in interface WindowFocusListener
event
- the event, ignored in this implementation