KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openharmonise > him > actions > messages > ActionSetFilters


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.messages;
20
21 import java.awt.event.ActionEvent JavaDoc;
22
23 import javax.swing.Icon JavaDoc;
24 import javax.swing.ImageIcon JavaDoc;
25 import javax.swing.JFrame JavaDoc;
26
27 import org.openharmonise.him.actions.*;
28 import org.openharmonise.him.configuration.*;
29 import org.openharmonise.vfs.*;
30 import org.openharmonise.vfs.gui.*;
31
32
33 /**
34  * Action to open the customise dialog with the reporting filters open.
35  *
36  * @author Matthew Large
37  * @version $Revision: 1.1 $
38  *
39  */

40 public class ActionSetFilters extends AbstractHIMAction implements HIMAction {
41
42     /**
43      *
44      */

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

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

59     public void actionPerformed(ActionEvent JavaDoc arg0) {
60         JFrame JavaDoc frame = new JFrame JavaDoc();
61         frame.setIconImage( ((ImageIcon JavaDoc)IconManager.getInstance().getIcon("16-command-preferences.gif")).getImage() );
62                 
63                 
64         ConfigDialog dialog = new ConfigDialog(frame, "Customise");
65         dialog.setSelectedTab("Options");
66         dialog.show();
67     }
68
69     /* (non-Javadoc)
70      * @see com.simulacramedia.contentmanager.actions.AbstractCMAction#getText()
71      */

72     public String JavaDoc getText() {
73         return "Reporting Options";
74     }
75
76     /* (non-Javadoc)
77      * @see com.simulacramedia.contentmanager.actions.AbstractCMAction#getToolTip()
78      */

79     public String JavaDoc getToolTip() {
80         return "Opens a dialog to customise the reporting options";
81     }
82
83     /* (non-Javadoc)
84      * @see com.simulacramedia.contentmanager.actions.AbstractCMAction#getIcon()
85      */

86     public Icon JavaDoc getIcon() {
87         return IconManager.getInstance().getIcon("16-command-preferences.gif");
88     }
89
90     /* (non-Javadoc)
91      * @see com.simulacramedia.contentmanager.actions.AbstractCMAction#getMnemonic()
92      */

93     public String JavaDoc getMnemonic() {
94         return "R";
95     }
96
97     /* (non-Javadoc)
98      * @see com.simulacramedia.contentmanager.actions.CMAction#getDescription()
99      */

100     public String JavaDoc getDescription() {
101         return "Opens a dialog to customise the reporting options";
102     }
103
104     /* (non-Javadoc)
105      * @see com.simulacramedia.contentmanager.actions.CMAction#getAcceleratorKeycode()
106      */

107     public int getAcceleratorKeycode() {
108         return 0;
109     }
110
111     /* (non-Javadoc)
112      * @see com.simulacramedia.contentmanager.actions.CMAction#getAcceleratorMask()
113      */

114     public int getAcceleratorMask() {
115         return 0;
116     }
117
118 }
119
Popular Tags