|
|||||||||||
| 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.mnemonicTODO: Add registration for new menu items. TODO: Once the old module loader is removed from ArgoUML, the
ArgoModuleEventListener can be removed.
| 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 |
| 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.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. |
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. |
protected void |
initMenus()
Construct the ordinary all purpose Argo Menu Bar. |
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. |
protected static void |
setMnemonic(JMenuItem item,
String key)
This should be a user specified option. |
void |
targetAdded(TargetEvent e)
Fired when a target is added to the list of targets. |
void |
targetRemoved(TargetEvent e)
Fired when a target is removed from the list of targets |
void |
targetSet(TargetEvent e)
Fired when a total new set of targets is set |
| 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 |
| 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
public void moduleLoaded(ArgoModuleEvent event)
ArgoModuleEventListener
moduleLoaded in interface ArgoModuleEventListenerevent - the eventArgoModuleEventListener.moduleLoaded(ArgoModuleEvent)public void moduleUnloaded(ArgoModuleEvent event)
ArgoModuleEventListener
moduleUnloaded in interface ArgoModuleEventListenerevent - the eventArgoModuleEventListener.moduleUnloaded(ArgoModuleEvent)public void moduleEnabled(ArgoModuleEvent event)
ArgoModuleEventListener
moduleEnabled in interface ArgoModuleEventListenerevent - the eventArgoModuleEventListener.moduleEnabled(ArgoModuleEvent)public void moduleDisabled(ArgoModuleEvent event)
ArgoModuleEventListener
moduleDisabled in interface ArgoModuleEventListenerevent - the eventArgoModuleEventListener.moduleDisabled(ArgoModuleEvent)protected void initMenus()
public JToolBar getCreateDiagramToolbar()
public JToolBar getEditToolbar()
public JToolBar getFileToolbar()
public JToolBar getViewToolbar()
public void addFileSaved(String filename)
filename - of the projectpublic JMenu getTools()
public void targetAdded(TargetEvent e)
TargetListener
targetAdded in interface TargetListenere - The targetevent, name will be TARGET_ADDEDTargetListener.targetAdded(org.argouml.ui.targetmanager.TargetEvent)public void targetRemoved(TargetEvent e)
TargetListener
targetRemoved in interface TargetListenere - The targetevent, name will be TARGET_REMOVEDTargetListener.targetRemoved(org.argouml.ui.targetmanager.TargetEvent)public void targetSet(TargetEvent e)
TargetListener
targetSet in interface TargetListenere - The targetevent, name will be TARGET_SETTargetListener.targetSet(org.argouml.ui.targetmanager.TargetEvent)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |