simulator.view
Class ViewCloseListener

java.lang.Object
  extended by java.awt.event.WindowAdapter
      extended by simulator.view.ViewCloseListener
All Implemented Interfaces:
java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener, java.util.EventListener

public class ViewCloseListener
extends java.awt.event.WindowAdapter

A listener to respond to a view being closed.


Constructor Summary
ViewCloseListener(java.awt.Component notifyMe)
           
 
Method Summary
 boolean viewExists()
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosing, 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

ViewCloseListener

public ViewCloseListener(java.awt.Component notifyMe)
Parameters:
notifyMe - the component that wants to be notified of the close
Method Detail

viewExists

public boolean viewExists()
Returns:
true if the window exists, false if it has been closed.

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener
Overrides:
windowClosed in class java.awt.event.WindowAdapter