|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JMenuBar
org.argouml.ui.cmd.GenericArgoMenuBar
GenericArgoMenuBar defines the menubar for all operating systems which do not explicitely ask for a different kind of menu bar, such as Mac OS X.
Menu's and the mnemonics of menu's and the menuitems are separated in the PropertyResourceBundle menu.properties.
menuitems are separated in the PropertyResourceBundle action.properties.
The key's in menu.properties have the following structure:
menu: [file].[name of menu] e.g: menu.file mnemonics of menu's: [file].[name of menu].mnemonic e.g: menu.file.mnemonic mnemonics of menuitems: [file].[flag for item].[name of menuitem].mnemonic e.g: menu.item.new.mnemonic
Nested Class Summary |
Nested classes inherited from class javax.swing.JMenuBar |
JMenuBar.AccessibleJMenuBar |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private ArgoJMenu |
arrange
This should be invoked automatically when importing sources. |
private JMenu |
createDiagrams
Toolbar:create diagram. |
private JToolBar |
createDiagramToolbar
|
private ArgoJMenu |
critique
The critique menu. |
private JMenu |
edit
Edit menu. |
private JToolBar |
editToolbar
|
private JToolBar |
fileToolbar
The toolbars. |
private JMenu |
generate
Supports java generation, modules for php and html/javadocs are planned feel free to contribute here! |
private JMenu |
help
It needs it. |
private LastRecentlyUsedMenuList |
lruList
lru project list. |
private static String |
MENU
Name and prepareKey-Strings of/for the i18n menu.properties. |
private static String |
MENUITEM
MENUITEM = Prefix for menuitem-keys. |
private JMenu |
select
The Select menu is a submenu of Edit. |
private JMenu |
tools
Currently disactivated. |
private ArgoJMenu |
view
View under which is the Goto Diagram, Find, Zoom, Adjust grid etc. |
private JToolBar |
viewToolbar
|
Fields inherited from class javax.swing.JMenuBar |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
GenericArgoMenuBar()
The constructor. |
Method Summary | |
void |
addFileSaved(String filename)
Adds the entry to the lru list. |
private void |
appendPluggableMenus(JMenuItem menuitem,
String key)
Scans through all loaded modules to see if it has an item to add in this diagram. |
JToolBar |
getCreateDiagramToolbar()
Get the create diagram toolbar. |
JToolBar |
getEditToolbar()
Get the edit toolbar. |
JToolBar |
getFileToolbar()
Getter for the file toolbar. |
JMenu |
getTools()
Getter for the Tools menu. |
JToolBar |
getViewToolbar()
Getter for the view toolbar. |
private void |
initMenuArrange()
Build the menu "Arrange". |
private void |
initMenuCreate()
Build the menu "Create" and the toolbar for diagram creation. |
private void |
initMenuCritique()
Build the menu "Critique". |
private void |
initMenuEdit(int mask)
Build the menu "Edit". |
private void |
initMenuFile(int mask)
Build the menu "File". |
private void |
initMenuGeneration()
Build the menu "Generation". |
private void |
initMenuHelp()
Build the menu "Help". |
protected void |
initMenus()
Construct the ordinary all purpose Argo Menu Bar. |
private void |
initMenuTools()
Build the menu "Tools". |
private void |
initMenuView(int mask)
Build the menu "View". |
protected static String |
menuLocalize(String key)
|
void |
moduleDisabled(ArgoModuleEvent event)
Invoked when a module has been disabled. |
void |
moduleEnabled(ArgoModuleEvent event)
Invoked when a module has been enabled. |
void |
moduleLoaded(ArgoModuleEvent event)
Invoked when a module has been loaded. |
void |
moduleUnloaded(ArgoModuleEvent event)
Invoked when a module has been unloaded. |
private static String |
prepareKey(String str)
Prepares one part of the key for menu- or/and menuitem-mnemonics used in menu.properties. |
(package private) static void |
setAccelerator(JMenuItem item,
KeyStroke keystroke)
|
protected static void |
setMnemonic(JMenuItem item,
String key)
This should be a user specified option. |
Methods inherited from class javax.swing.JMenuBar |
add, addNotify, getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getHelpMenu, getMargin, getMenu, getMenuCount, getSelectionModel, getSubElements, getUI, getUIClassID, isBorderPainted, isSelected, menuSelectionChanged, paintBorder, paramString, processKeyBinding, processKeyEvent, processMouseEvent, removeNotify, setBorderPainted, setHelpMenu, setMargin, setSelected, setSelectionModel, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String MENU
private static final String MENUITEM
private JToolBar fileToolbar
private JToolBar editToolbar
private JToolBar viewToolbar
private JToolBar createDiagramToolbar
private LastRecentlyUsedMenuList lruList
private JMenu edit
private JMenu select
private ArgoJMenu view
private JMenu createDiagrams
private JMenu tools
private JMenu generate
private ArgoJMenu arrange
private ArgoJMenu critique
private JMenu help
Constructor Detail |
public GenericArgoMenuBar()
Method Detail |
protected static final void setMnemonic(JMenuItem item, String key)
item
- is the JMenuItem to do this for.key
- is the key that we do this for.protected static final String menuLocalize(String key)
key
- the key to localize
static final void setAccelerator(JMenuItem item, KeyStroke keystroke)
private void appendPluggableMenus(JMenuItem menuitem, String key)
menuitem
- The menuitem which this menuitem would attach to.key
- Non-localized string that tells the module where we are.public void moduleLoaded(ArgoModuleEvent event)
ArgoModuleEventListener
moduleLoaded
in interface ArgoModuleEventListener
event
- the eventArgoModuleEventListener.moduleLoaded(ArgoModuleEvent)
public void moduleUnloaded(ArgoModuleEvent event)
ArgoModuleEventListener
moduleUnloaded
in interface ArgoModuleEventListener
event
- the eventArgoModuleEventListener.moduleUnloaded(ArgoModuleEvent)
public void moduleEnabled(ArgoModuleEvent event)
ArgoModuleEventListener
moduleEnabled
in interface ArgoModuleEventListener
event
- the eventArgoModuleEventListener.moduleEnabled(ArgoModuleEvent)
public void moduleDisabled(ArgoModuleEvent event)
ArgoModuleEventListener
moduleDisabled
in interface ArgoModuleEventListener
event
- the eventArgoModuleEventListener.moduleDisabled(ArgoModuleEvent)
protected void initMenus()
private void initMenuFile(int mask)
mask
- menu shortcut key maskprivate void initMenuEdit(int mask)
mask
- menu shortcut key maskprivate void initMenuView(int mask)
mask
- menu shortcut key maskprivate void initMenuCreate()
The sequence of these items was determined by issue 1821.
private void initMenuArrange()
private void initMenuGeneration()
private void initMenuCritique()
private void initMenuTools()
private void initMenuHelp()
public JToolBar getCreateDiagramToolbar()
public JToolBar getEditToolbar()
public JToolBar getFileToolbar()
public JToolBar getViewToolbar()
private static String prepareKey(String str)
str
-
public void addFileSaved(String filename)
filename
- of the projectpublic JMenu getTools()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |