at.ac.tuwien.dbai.alternation.gui
Class WindowClosingAdapter

java.lang.Object
  extended by java.awt.event.WindowAdapter
      extended by at.ac.tuwien.dbai.alternation.gui.WindowClosingAdapter
All Implemented Interfaces:
java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener, java.util.EventListener

public class WindowClosingAdapter
extends java.awt.event.WindowAdapter

Window-Adapter for closing any Window-Frames. It configures the exit-system for the whole application and manages any window-closing-operations.

Author:
Stefan Weiser

Constructor Summary
WindowClosingAdapter()
          Creates a new instance.
WindowClosingAdapter(boolean exitSystem)
          Creates a new instance with a given boolean-parameter.
 
Method Summary
 void windowClosing(java.awt.event.WindowEvent event)
          Shuts down the given Window.
 
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

WindowClosingAdapter

public WindowClosingAdapter()
Creates a new instance. If the window get closed, the application is still running.


WindowClosingAdapter

public WindowClosingAdapter(boolean exitSystem)
Creates a new instance with a given boolean-parameter. If the parameter is true, the application will shut down after closing the window.

Parameters:
exitSystem - if true, the application will shut down
Method Detail

windowClosing

public void windowClosing(java.awt.event.WindowEvent event)
Shuts down the given Window.

Specified by:
windowClosing in interface java.awt.event.WindowListener
Overrides:
windowClosing in class java.awt.event.WindowAdapter
Parameters:
event - which has been activated