KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejtools > adwt > action > window > InternalFrameAction


1 /*
2  * EJTools, the Enterprise Java Tools
3  *
4  * Distributable under LGPL license.
5  * See terms of license at www.gnu.org.
6  */

7 package org.ejtools.adwt.action.window;
8
9 import java.util.ResourceBundle JavaDoc;
10
11 import javax.swing.JMenuItem JavaDoc;
12 import javax.swing.JRadioButtonMenuItem JavaDoc;
13
14 import org.ejtools.adwt.action.Command;
15 import org.ejtools.adwt.action.CommandAction;
16
17 /**
18  * Description of the Class
19  *
20  * @author Laurent Etiemble
21  * @version $Revision: 1.8 $
22  * @todo Javadoc to complete
23  */

24 public class InternalFrameAction extends CommandAction
25 {
26     /** Resource Bundle */
27    private static ResourceBundle JavaDoc resources = ResourceBundle.getBundle("org.ejtools.adwt.action.Resources");
28
29
30    /**
31     * Constructor for the InternalFrameAction object
32     *
33     * @param command Description of the Parameter
34     * @paramcommand Description of Parameter
35     */

36    public InternalFrameAction(Command command)
37    {
38       super(command, resources, "action.window.frame");
39       this.setMenu("action.window");
40    }
41
42
43    /**
44     * Gets the menuItem attribute of the InternalFrameAction object
45     *
46     * @return The menuItem value
47     */

48    public JMenuItem JavaDoc getMenuItem()
49    {
50       JMenuItem JavaDoc menuitem = (JMenuItem JavaDoc) this.getValue(MENU_ITEM);
51
52       if (menuitem == null)
53       {
54          menuitem = new JRadioButtonMenuItem JavaDoc(this);
55          this.putValue(MENU_ITEM, menuitem);
56       }
57       return menuitem;
58    }
59 }
60
61
Popular Tags