|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| InternalFrameAction.java | 100% | 100% | 100% | 100% |
|
||||||||||||||
| 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;
|
|
| 10 |
|
|
| 11 |
import javax.swing.JMenuItem;
|
|
| 12 |
import javax.swing.JRadioButtonMenuItem;
|
|
| 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 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 | 16 |
public InternalFrameAction(Command command)
|
| 37 |
{
|
|
| 38 | 16 |
super(command, resources, "action.window.frame"); |
| 39 | 16 |
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 | 32 |
public JMenuItem getMenuItem()
|
| 49 |
{
|
|
| 50 | 32 |
JMenuItem menuitem = (JMenuItem) this.getValue(MENU_ITEM);
|
| 51 |
|
|
| 52 | 32 |
if (menuitem == null) |
| 53 |
{
|
|
| 54 | 16 |
menuitem = new JRadioButtonMenuItem(this); |
| 55 | 16 |
this.putValue(MENU_ITEM, menuitem);
|
| 56 |
} |
|
| 57 | 32 |
return menuitem;
|
| 58 |
} |
|
| 59 |
} |
|
| 60 |
|
|
| 61 |
|
|
||||||||||