001: /*
002: * The contents of this file are subject to the
003: * Mozilla Public License Version 1.1 (the "License");
004: * you may not use this file except in compliance with the License.
005: * You may obtain a copy of the License at http://www.mozilla.org/MPL/
006: *
007: * Software distributed under the License is distributed on an "AS IS"
008: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
009: * See the License for the specific language governing rights and
010: * limitations under the License.
011: *
012: * The Initial Developer of the Original Code is Simulacra Media Ltd.
013: * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
014: *
015: * All Rights Reserved.
016: *
017: * Contributor(s):
018: */
019: package org.openharmonise.him.actions.move;
020:
021: import java.awt.event.ActionEvent;
022:
023: import javax.swing.Icon;
024:
025: import org.openharmonise.him.actions.*;
026: import org.openharmonise.vfs.*;
027: import org.openharmonise.vfs.gui.*;
028:
029: /**
030: * Action to cancel the virtual file drag context menu.
031: *
032: * @author Matthew Large
033: * @version $Revision: 1.1 $
034: *
035: */
036: public class ActionCancel extends AbstractHIMAction implements
037: HIMAction {
038:
039: /**
040: *
041: */
042: public ActionCancel() {
043: super ();
044: }
045:
046: /**
047: * @param vfFile
048: */
049: private ActionCancel(VirtualFile vfFile) {
050: super (vfFile);
051: }
052:
053: /* (non-Javadoc)
054: * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
055: */
056: public void actionPerformed(ActionEvent arg0) {
057: // NO-OP
058: }
059:
060: /* (non-Javadoc)
061: * @see com.simulacramedia.contentmanager.actions.AbstractCMAction#getText()
062: */
063: public String getText() {
064: return "Cancel";
065: }
066:
067: /* (non-Javadoc)
068: * @see com.simulacramedia.contentmanager.actions.AbstractCMAction#getToolTip()
069: */
070: public String getToolTip() {
071: return null;
072: }
073:
074: /* (non-Javadoc)
075: * @see com.simulacramedia.contentmanager.actions.AbstractCMAction#getIcon()
076: */
077: public Icon getIcon() {
078: return IconManager.getInstance().getIcon("16-blank.gif");
079: }
080:
081: /* (non-Javadoc)
082: * @see com.simulacramedia.contentmanager.actions.AbstractCMAction#getMnemonic()
083: */
084: public String getMnemonic() {
085: return "n";
086: }
087:
088: /* (non-Javadoc)
089: * @see com.simulacramedia.contentmanager.actions.CMAction#getDescription()
090: */
091: public String getDescription() {
092: return null;
093: }
094:
095: /* (non-Javadoc)
096: * @see com.simulacramedia.contentmanager.actions.CMAction#getAcceleratorKeycode()
097: */
098: public int getAcceleratorKeycode() {
099: 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: }
|