Class SystemExitWatcher

All Implemented Interfaces:
AWTEventListener, EventListener

public class SystemExitWatcher
extends WindowWatcher

When the last window has been closed, exit the system. Should only be instantiated once in the main() function.

Matthew Pekar

Field Summary
Fields inherited from class com.mtp.gui.WindowWatcher
DEFAULT_WAIT_TIMEOUT, filterAllWindows, filteredHashCodes, filteredNames, id, removeWindows, waitTimeout, windows
Method Summary
static SystemExitWatcher getInstance()
static void instantiate()
protected  void removeWindow(Window w)
          Remove given window.
Methods inherited from class com.mtp.gui.WindowWatcher
addWindow, clearWindows, containsWindow, containsWindow, copyWindows, disconnect, disposeWindows, eventDispatched, filtered, filterWindow, filterWindow, getFilterAllWindows, getRemoveWindows, getWindowByID, getWindowByName, getWindowByTitle, getWindowCount, getWindowID, getWindows, removeFilteredWindows, setFilterAllWindows, setRemoveWindows, setWaitTimeout, updateUIs, waitTillWindowNotPresent, waitTillWindowNotPresent, waitTillWindowPresent, waitTillWindowPresent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public static void instantiate()


public static SystemExitWatcher getInstance()


protected void removeWindow(Window w)
Description copied from class: WindowWatcher
Remove given window.

removeWindow in class WindowWatcher

Copyright © 2002 Matthew Pekar. All Rights Reserved.