|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.gui.ComponentFactory
org.openpermis.editor.policy.gui.MenuBarFactory
public class MenuBarFactory
Factory for menu bars.
Constructor Summary | |
---|---|
MenuBarFactory(ActionMap actionMap,
org.jdesktop.application.ResourceMap resourceMap)
Creates a menu bar factory that operates on the specified action and resource map. |
Method Summary | |
---|---|
protected JMenu |
createMenu(String menuBarName,
String name,
boolean addIcon)
Creates a single menu of a menu bar. |
static JMenuBar |
createMenuBar(ActionMap actionMap,
org.jdesktop.application.ResourceMap resourceMap,
String key)
Creates a menu bar from a resource map and a resource key. |
JMenuBar |
createMenuBar(String key)
Creates a menubar with the specified resource key name. |
protected JMenuItem |
createMenuItem(String key)
Creates a menu item for the specified resource key name. |
Methods inherited from class org.openpermis.editor.policy.gui.ComponentFactory |
---|
getAction, getActionMap, getEntries, getResourceMap, isComposite, isGlue, isPlaceholder, isSeparator, unmaskComposite |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MenuBarFactory(ActionMap actionMap, org.jdesktop.application.ResourceMap resourceMap)
actionMap
- the action map this factory operates on.resourceMap
- the resource map this factory operates on.Method Detail |
---|
public static JMenuBar createMenuBar(ActionMap actionMap, org.jdesktop.application.ResourceMap resourceMap, String key)
actionMap
- the action map this factory operates on.resourceMap
- the resource map this factory operates on.key
- the name of the menu bar configuration in the resource map.
protected JMenuItem createMenuItem(String key)
key
- the name of the menu item configuration in the resource map.
protected JMenu createMenu(String menuBarName, String name, boolean addIcon)
menuBarName
- the resource key of the menu bar.name
- the resource key of the menu entry to create.addIcon
- indicates if an icon is added to the menu.
public JMenuBar createMenuBar(String key)
key
- the name of the menu bar configuration in the resource map.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:48
Copyright (c) 2002-2007 Ergon Informatik AG