java.awt.event
Class WindowAdapter

java.lang.Object
  extended by java.awt.event.WindowAdapter
All Implemented Interfaces:
WindowFocusListener, WindowListener, WindowStateListener, EventListener
Direct Known Subclasses:
BasicToolBarUI.FrameListener, JMenu.WinListener

public abstract class WindowAdapter
extends Object
implements WindowListener, WindowStateListener, WindowFocusListener

This class implements 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.

Since:
1.1
See Also:
ComponentEvent, ComponentListener

Constructor Summary
WindowAdapter()
          Do nothing default constructor for subclasses.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowAdapter

public WindowAdapter()
Do nothing default constructor for subclasses.

Method Detail

windowOpened

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

Specified by:
windowOpened in interface WindowListener
Parameters:
event - the event, ignored in this implementation

windowClosing

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

Specified by:
windowClosing in interface WindowListener
Parameters:
event - the event, ignored in this implementation

windowClosed

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

Specified by:
windowClosed in interface WindowListener
Parameters:
event - the event, ignored in this implementation

windowIconified

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

Specified by:
windowIconified in interface WindowListener
Parameters:
event - the event, ignored in this implementation
See Also:
Frame.setIconImage(Image)

windowDeiconified

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

Specified by:
windowDeiconified in interface WindowListener
Parameters:
event - the event, ignored in this implementation

windowActivated

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

Specified by:
windowActivated in interface WindowListener
Parameters:
event - the event, ignored in this implementation

windowDeactivated

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

Specified by:
windowDeactivated in interface WindowListener
Parameters:
event - the event, ignored in this implementation

windowStateChanged

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

Specified by:
windowStateChanged in interface WindowStateListener
Parameters:
event - the event, ignored in this implementation
Since:
1.4

windowGainedFocus

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

Specified by:
windowGainedFocus in interface WindowFocusListener
Parameters:
event - the event, ignored in this implementation
Since:
1.4

windowLostFocus

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

Specified by:
windowLostFocus in interface WindowFocusListener
Parameters:
event - the event, ignored in this implementation
Since:
1.4