View Javadoc

1   /*
2    * @(#)$Id: MainWindowAdapter.java 693 2009-07-24 20:31:11Z kurmannu $
3    *
4    * Author		:	Ueli Kurmann, igesture@uelikurmann.ch
5    *                  
6    *
7    * Purpose		: 
8    *
9    * -----------------------------------------------------------------------
10   *
11   * Revision Information:
12   *
13   * Date				Who			Reason
14   *
15   * 09.04.2008			ukurmann	Initial Release
16   *
17   * -----------------------------------------------------------------------
18   *
19   * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
20   *
21   * This software is the proprietary information of ETH Zurich.
22   * Use is subject to license terms.
23   * 
24   */
25  
26  
27  package org.ximtec.igesture.tool.view;
28  
29  import java.awt.event.WindowAdapter;
30  import java.awt.event.WindowEvent;
31  
32  import org.ximtec.igesture.tool.core.Command;
33  
34  
35  /**
36   * Comment
37   * @version 1.0 09.04.2008
38   * @author Ueli Kurmann
39   */
40  public class MainWindowAdapter extends WindowAdapter {
41  
42     MainController controller;
43  
44     public MainWindowAdapter(MainController mainController){
45        this.controller = mainController;
46     }
47  
48     @Override
49     public void windowClosing(WindowEvent e) {
50        controller.execute(new Command(MainController.CMD_EXIT, e));
51     }
52  
53  }