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.publish;
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 unpublish a virtual file.
031: *
032: * @author Matthew Large
033: * @version $Revision: 1.1 $
034: *
035: */
036: public class ActionRemoveFromInternet extends AbstractHIMAction
037: implements HIMAction {
038:
039: public static String ACTION_NAME = "UNPUBLISH";
040:
041: /**
042: *
043: */
044: public ActionRemoveFromInternet() {
045: super ();
046: }
047:
048: /**
049: * @param vfFile
050: */
051: public ActionRemoveFromInternet(VirtualFile vfFile) {
052: super (vfFile);
053: }
054:
055: /* (non-Javadoc)
056: * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
057: */
058: public void actionPerformed(ActionEvent arg0) {
059: // TODO Auto-generated method stub
060:
061: }
062:
063: /* (non-Javadoc)
064: * @see com.simulacramedia.contentmanager.actions.CMAction#getDescription()
065: */
066: public String getDescription() {
067: return "Removes the currently selected file from the website";
068: }
069:
070: /* (non-Javadoc)
071: * @see com.simulacramedia.contentmanager.actions.CMAction#getText()
072: */
073: public String getText() {
074: return "Remove from the website";
075: }
076:
077: /* (non-Javadoc)
078: * @see com.simulacramedia.contentmanager.actions.CMAction#getToolTip()
079: */
080: public String getToolTip() {
081: return this .getDescription();
082: }
083:
084: /* (non-Javadoc)
085: * @see com.simulacramedia.contentmanager.actions.CMAction#getIcon()
086: */
087: public Icon getIcon() {
088: return IconManager.getInstance().getIcon("16-blank.gif");
089: }
090:
091: /* (non-Javadoc)
092: * @see com.simulacramedia.contentmanager.actions.CMAction#getAcceleratorKeycode()
093: */
094: public int getAcceleratorKeycode() {
095: return 0;
096: }
097:
098: /* (non-Javadoc)
099: * @see com.simulacramedia.contentmanager.actions.CMAction#getMnemonic()
100: */
101: public String getMnemonic() {
102: return "w";
103: }
104:
105: /* (non-Javadoc)
106: * @see com.simulacramedia.contentmanager.actions.CMAction#getAcceleratorMask()
107: */
108: public int getAcceleratorMask() {
109: return 0;
110: }
111:
112: }
|