Package jam.framework
Class DefaultFileMenuFactory
java.lang.Object
jam.framework.DefaultFileMenuFactory
- All Implemented Interfaces:
MenuFactory
- Author:
- rambaut Date: Dec 26, 2004 Time: 11:01:06 AM
-
Field Summary
Fields inherited from interface jam.framework.MenuFactory
CENTER, LEFT, RIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGive the name of this menu.intReturns the preferred alignment of the menu in the menu bar.voidpopulateMenu(JMenu menu, AbstractFrame frame) This method should populate the menu with menu items.
-
Constructor Details
-
DefaultFileMenuFactory
public DefaultFileMenuFactory(boolean isMultiDocument)
-
-
Method Details
-
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
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- Parameters:
menu-frame-
-
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
-