ch.hearc.I04_05s08.GUI
Class MainWindowListener

java.lang.Object
  extended byjava.awt.event.WindowAdapter
      extended bych.hearc.I04_05s08.GUI.MainWindowListener
All Implemented Interfaces:
ActionListener, EventListener, WindowFocusListener, WindowListener, WindowStateListener

public class MainWindowListener
extends WindowAdapter
implements ActionListener

Closing the window (the clean way)

Author:
Blanc, Yoan
Licence:
MIT
Copyright:
2005 Yoan Blanc, HE-ARC Ing�nierie

Field Summary
private  MainApplication mainframe
          The main frame
 
Constructor Summary
MainWindowListener(MainApplication mainframe)
          Build a new help file
 
Method Summary
 void actionPerformed(ActionEvent e)
          Closing the window
private  void close()
          Close
 void windowClosing(WindowEvent e)
          Closing the 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

mainframe

private MainApplication mainframe
The main frame

Constructor Detail

MainWindowListener

public MainWindowListener(MainApplication mainframe)
Build a new help file

Parameters:
mainframe - the main frame window
Method Detail

windowClosing

public void windowClosing(WindowEvent e)
Closing the window

Specified by:
windowClosing in interface WindowListener

actionPerformed

public void actionPerformed(ActionEvent e)
Closing the window

Specified by:
actionPerformed in interface ActionListener

close

private void close()
Close



A project by Blanc, Yoan – supervised by Dr. Ghorbel, Hatem.
2004 © Blanc, Yoan - HE-ARC