net.simplace.ui.menu.FWMenuBar
public final class FWMenuBar extends javax.swing.JMenuBar {
// Public Constructors
public FWMenuBar(String aLocalePrefix, Map aMenuItemMap);
// Public Instance Methods public JMenu addMenu(String aMenuName);
Creates a menu, add it to this menubar.
public JMenu addMenu(String aMenuName, JMenu aMenu);
Creates a menu, add it to this menubar.
public JMenu addSubMenu(String aMenuName, String aParentMenu);
Creates a menu, adds it to another menu.
public void addSeparator(String aMenuName);
Adds a separator to the given menu.
public void setEnabled(String aActionCommand, boolean aEnabled);
Enables/Disables an existing menuitem.
public void setVisible(String aActionCommand, boolean aEnabled);
Shows/hides an existing menuitem.
public void setText(String aActionCommand, String aValue, boolean aEnabled);
Set the caption (aValue) to the MenuItem but use the given ActionCommand
public JMenuItem getMenuItem(String aActionCommand);
Returns the menuItem for the given ActionCommand or null if none exists.
public KeyStroke getKeyStrokeFromString(String aCombination);
Creates a keystroke out of a commaseperated string
public boolean getSelectionState(String aMenuName);
Returns if the menuitem with the selected name is selected. If it's neither a radio nor
a checkbox-item it will return false. Same if the item doesn't exist at all.
public void setSelectionState(String aMenuName, boolean aSelectionState);
Sets a new selectionstate to the given menu. The menu should either be a checkBox or
a radioButton.
}
Hierarchy: java.lang.Object - java.awt.Component (java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable) - java.awt.Container - javax.swing.JComponent (java.io.Serializable, javax.swing.TransferHandler.HasGetTransferHandler) - javax.swing.JMenuBar (javax.accessibility.Accessible, javax.swing.MenuElement) - FWMenuBar
Returned by: net.simplace.ui.FWMainFrame.getFWMenuBar()