Package jam.framework
Class DefaultEditMenuFactory
- java.lang.Object
-
- jam.framework.DefaultEditMenuFactory
-
- All Implemented Interfaces:
MenuFactory
public class DefaultEditMenuFactory extends java.lang.Object implements MenuFactory
- Version:
- $Id: DefaultEditMenuFactory.java 959 2008-11-30 18:47:28Z rambaut $
- Author:
- rambaut Date: Dec 26, 2004 Time: 11:01:40 AM
-
-
Field Summary
-
Fields inherited from interface jam.framework.MenuFactory
CENTER, LEFT, RIGHT
-
-
Constructor Summary
Constructors Constructor Description DefaultEditMenuFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMenuName()Give the name of this menu.intgetPreferredAlignment()Returns the preferred alignment of the menu in the menu bar.voidpopulateMenu(javax.swing.JMenu menu, AbstractFrame frame)This method should populate the menu with menu items.
-
-
-
Method Detail
-
getMenuName
public java.lang.String getMenuName()
Description copied from interface:MenuFactoryGive the name of this menu. If multiple MenuFactories are registered with the same name, then these will be appended into a single actual menu.- Specified by:
getMenuNamein interfaceMenuFactory
-
populateMenu
public void populateMenu(javax.swing.JMenu menu, AbstractFrame frame)Description copied from interface:MenuFactoryThis method should populate the menu with menu items. Reference can be made to the frame in order to get Actions.- Specified by:
populateMenuin interfaceMenuFactory
-
getPreferredAlignment
public int getPreferredAlignment()
Description copied from interface:MenuFactoryReturns the preferred alignment of the menu in the menu bar. This should be one of MenuFactory.LEFT, MenuFactory.CENTER or MenuFactory.RIGHT.- Specified by:
getPreferredAlignmentin interfaceMenuFactory- Returns:
- the alignment
-
-