KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openharmonise > him > actions > move > ActionCancel


1 /*
2  * The contents of this file are subject to the
3  * Mozilla Public License Version 1.1 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at http://www.mozilla.org/MPL/
6  *
7  * Software distributed under the License is distributed on an "AS IS"
8  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
9  * See the License for the specific language governing rights and
10  * limitations under the License.
11  *
12  * The Initial Developer of the Original Code is Simulacra Media Ltd.
13  * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
14  *
15  * All Rights Reserved.
16  *
17  * Contributor(s):
18  */

19 package org.openharmonise.him.actions.move;
20
21 import java.awt.event.ActionEvent JavaDoc;
22
23 import javax.swing.Icon JavaDoc;
24
25 import org.openharmonise.him.actions.*;
26 import org.openharmonise.vfs.*;
27 import org.openharmonise.vfs.gui.*;
28
29
30 /**
31  * Action to cancel the virtual file drag context menu.
32  *
33  * @author Matthew Large
34  * @version $Revision: 1.1 $
35  *
36  */

37 public class ActionCancel extends AbstractHIMAction implements HIMAction {
38
39     /**
40      *
41      */

42     public ActionCancel() {
43         super();
44     }
45
46     /**
47      * @param vfFile
48      */

49     private ActionCancel(VirtualFile vfFile) {
50         super(vfFile);
51     }
52
53     /* (non-Javadoc)
54      * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
55      */

56     public void actionPerformed(ActionEvent JavaDoc arg0) {
57         // NO-OP
58
}
59
60     /* (non-Javadoc)
61      * @see com.simulacramedia.contentmanager.actions.AbstractCMAction#getText()
62      */

63     public String JavaDoc getText() {
64         return "Cancel";
65     }
66
67     /* (non-Javadoc)
68      * @see com.simulacramedia.contentmanager.actions.AbstractCMAction#getToolTip()
69      */

70     public String JavaDoc getToolTip() {
71         return null;
72     }
73
74     /* (non-Javadoc)
75      * @see com.simulacramedia.contentmanager.actions.AbstractCMAction#getIcon()
76      */

77     public Icon JavaDoc getIcon() {
78         return IconManager.getInstance().getIcon("16-blank.gif");
79     }
80
81     /* (non-Javadoc)
82      * @see com.simulacramedia.contentmanager.actions.AbstractCMAction#getMnemonic()
83      */

84     public String JavaDoc getMnemonic() {
85         return "n";
86     }
87
88     /* (non-Javadoc)
89      * @see com.simulacramedia.contentmanager.actions.CMAction#getDescription()
90      */

91     public String JavaDoc getDescription() {
92         return null;
93     }
94
95     /* (non-Javadoc)
96      * @see com.simulacramedia.contentmanager.actions.CMAction#getAcceleratorKeycode()
97      */

98     public int getAcceleratorKeycode() {
99         return 0;
100     }
101
102     /* (non-Javadoc)
103      * @see com.simulacramedia.contentmanager.actions.CMAction#getAcceleratorMask()
104      */

105     public int getAcceleratorMask() {
106         return 0;
107     }
108
109 }
110
Popular Tags