userinterface
Class SuperFaceAdaptor

java.lang.Object
  extended by java.awt.event.WindowAdapter
      extended by userinterface.SuperFaceAdaptor
All Implemented Interfaces:
java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener, java.util.EventListener

 class SuperFaceAdaptor
extends java.awt.event.WindowAdapter

This internal class listens for events trying to close the userinterface window. When that happens this class will call the method "systemExit()" in "UserInterface".

Author:
Håvard Rykkelid

Field Summary
(package private)  UserInterface adaptee
           
 
Constructor Summary
SuperFaceAdaptor(UserInterface adaptee)
          The constructor
 
Method Summary
 void windowClosing(java.awt.event.WindowEvent e)
          This method calls "UserInterface.systemExit()" when an event tries to close the userinterface-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
 

Field Detail

adaptee

UserInterface adaptee
Constructor Detail

SuperFaceAdaptor

SuperFaceAdaptor(UserInterface adaptee)
The constructor

Parameters:
adaptee - - a reference to the userinterface
Method Detail

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
This method calls "UserInterface.systemExit()" when an event tries to close the userinterface-window.

Specified by:
windowClosing in interface java.awt.event.WindowListener
Overrides:
windowClosing in class java.awt.event.WindowAdapter
Parameters:
e - - the ActionEvent