javax.swing
Class JMenu.WinListener

java.lang.Object
  extended by java.awt.event.WindowAdapter
      extended by javax.swing.JMenu.WinListener
All Implemented Interfaces:
WindowFocusListener, WindowListener, WindowStateListener, Serializable, EventListener
Enclosing class:
JMenu

protected class JMenu.WinListener
extends WindowAdapter
implements Serializable

See Also:
Serialized Form

Constructor Summary
JMenu.WinListener(JPopupMenu popup)
          Creates a new WinListener.
 
Method Summary
 void windowClosing(WindowEvent event)
          Receives notification when the popup menu is closing and deselects the menu.
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened, windowStateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMenu.WinListener

public JMenu.WinListener(JPopupMenu popup)
Creates a new WinListener.

Parameters:
popup - the popup menu which is observed
Method Detail

windowClosing

public void windowClosing(WindowEvent event)
Receives notification when the popup menu is closing and deselects the menu.

Specified by:
windowClosing in interface WindowListener
Overrides:
windowClosing in class WindowAdapter
Parameters:
event - the window event