KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openharmonise > him > actions > publish > ActionRemoveFromInternet


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.publish;
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 unpublish a virtual file.
32  *
33  * @author Matthew Large
34  * @version $Revision: 1.1 $
35  *
36  */

37 public class ActionRemoveFromInternet
38     extends AbstractHIMAction
39     implements HIMAction {
40
41     public static String JavaDoc ACTION_NAME = "UNPUBLISH";
42
43     /**
44      *
45      */

46     public ActionRemoveFromInternet() {
47         super();
48     }
49
50     /**
51      * @param vfFile
52      */

53     public ActionRemoveFromInternet(VirtualFile vfFile) {
54         super(vfFile);
55     }
56
57     /* (non-Javadoc)
58      * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
59      */

60     public void actionPerformed(ActionEvent JavaDoc arg0) {
61         // TODO Auto-generated method stub
62

63     }
64
65     /* (non-Javadoc)
66      * @see com.simulacramedia.contentmanager.actions.CMAction#getDescription()
67      */

68     public String JavaDoc getDescription() {
69         return "Removes the currently selected file from the website";
70     }
71
72     /* (non-Javadoc)
73      * @see com.simulacramedia.contentmanager.actions.CMAction#getText()
74      */

75     public String JavaDoc getText() {
76         return "Remove from the website";
77     }
78
79     /* (non-Javadoc)
80      * @see com.simulacramedia.contentmanager.actions.CMAction#getToolTip()
81      */

82     public String JavaDoc getToolTip() {
83         return this.getDescription();
84     }
85
86     /* (non-Javadoc)
87      * @see com.simulacramedia.contentmanager.actions.CMAction#getIcon()
88      */

89     public Icon JavaDoc getIcon() {
90         return IconManager.getInstance().getIcon("16-blank.gif");
91     }
92
93     /* (non-Javadoc)
94      * @see com.simulacramedia.contentmanager.actions.CMAction#getAcceleratorKeycode()
95      */

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

103     public String JavaDoc getMnemonic() {
104         return "w";
105     }
106
107     /* (non-Javadoc)
108      * @see com.simulacramedia.contentmanager.actions.CMAction#getAcceleratorMask()
109      */

110     public int getAcceleratorMask() {
111         return 0;
112     }
113
114 }
115
Popular Tags