1 /*
2 * @(#)$Id: MinimizeAction.java 689 2009-07-22 00:10:27Z bsigner $
3 *
4 * Author : Michele Croci, mcroci@gmail.com
5 *
6 * Purpose : Minimises the application.
7 *
8 * -----------------------------------------------------------------------
9 *
10 * Revision Information:
11 *
12 * Date Who Reason
13 *
14 * Nov 15, 2006 crocimi Initial Release
15 * Jan 15, 2008 bsigner Cleanup
16 *
17 *
18 * -----------------------------------------------------------------------
19 *
20 * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
21 *
22 * This software is the proprietary information of ETH Zurich.
23 * Use is subject to license terms.
24 *
25 */
26
27
28 package org.ximtec.igesture.geco.gui.action;
29
30 import java.awt.event.ActionEvent;
31
32 import org.sigtec.graphix.widget.BasicAction;
33 import org.ximtec.igesture.geco.gui.MainView;
34 import org.ximtec.igesture.geco.util.GuiBundleTool;
35
36
37 /**
38 * Minimises the application.
39 *
40 * @version 0.9, Nov 15, 2006
41 * @author Michele Croci, mcroci@gmail.com
42 * @author Beat Signer, signer@inf.ethz.ch
43 */
44
45 public class MinimizeAction extends BasicAction {
46
47 /**
48 * The key used to retrieve action details from the resource bundle.
49 */
50 public static final String KEY = "MinimizeAction";
51
52 private MainView mainView;
53
54
55 public MinimizeAction(MainView mainView) {
56 super(KEY, GuiBundleTool.getBundle());
57 this.mainView = mainView;
58 }
59
60
61 /**
62 * @param event the action event.
63 */
64 public void actionPerformed(ActionEvent event) {
65 minimizeWindow();
66 } // actionPerformed
67
68 public void minimizeWindow(){
69 mainView.setVisible(false);
70 }
71
72 }