Class FermetureEcouteur

java.lang.Object
  extended byjava.awt.event.WindowAdapter
      extended byFermetureEcouteur
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener

public class FermetureEcouteur
extends java.awt.event.WindowAdapter
implements java.awt.event.ActionListener

Écouteur destiné au programme principal et au(x) bouton(s) de fermeture du programme. La méthode de fermeture est action().


Constructor Summary
FermetureEcouteur()
           
 
Method Summary
 void action()
          Chaîne d'action(s) à faire avant de quitter
 void actionPerformed(java.awt.event.ActionEvent e)
          Action de fermeture pour un bouton
 void windowClosing(java.awt.event.WindowEvent e)
          Action de fermeture pour une fenêtre
 
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

FermetureEcouteur

public FermetureEcouteur()
Method Detail

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Action de fermeture pour une fenêtre

Specified by:
windowClosing in interface java.awt.event.WindowListener
Parameters:
e - événement fenêtre

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Action de fermeture pour un bouton

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - événement de bouton

action

public void action()
Chaîne d'action(s) à faire avant de quitter