30 lines
814 B
Java
30 lines
814 B
Java
|
import java.awt.event.*;
|
||
|
|
||
|
public class observateurFenetre implements WindowListener{
|
||
|
private plateau plat;
|
||
|
public observateurFenetre(plateau plat0){
|
||
|
this.plat=plat0;
|
||
|
}
|
||
|
|
||
|
public void windowActivated(WindowEvent evenement){
|
||
|
|
||
|
} // premier plan
|
||
|
public void windowClosed(WindowEvent evenement){
|
||
|
|
||
|
} // après fermeture
|
||
|
public void windowClosing(WindowEvent evenement){
|
||
|
this.plat.save();
|
||
|
} // avant fermeture
|
||
|
public void windowDeactivated(WindowEvent evenement){
|
||
|
|
||
|
} // arrière-plan
|
||
|
public void windowDeiconified(WindowEvent evenement){
|
||
|
|
||
|
} // restauration
|
||
|
public void windowIconified(WindowEvent evenement){
|
||
|
|
||
|
} // minimisation
|
||
|
public void windowOpened(WindowEvent evenement){
|
||
|
|
||
|
} // après ouverture
|
||
|
}
|