public class EMenuBar extends EMenu
Modifier and Type | Class and Description |
---|---|
class |
EMenuBar.Instance |
EMenuItem.CheckBox
Modifier and Type | Field and Description |
---|---|
KeyBindingManager |
keyBindingManager
Key Binding Manager for menu items
|
NULL_ARRAY, SEPARATOR
Modifier and Type | Method and Description |
---|---|
void |
addUserKeyBinding(EMenuItem item,
javax.swing.KeyStroke stroke,
javax.swing.KeyStroke prefixStroke)
Add a user defined Key binding.
|
EMenuBar.Instance |
genInstance(WindowFrame frame) |
java.lang.String |
getDescription(int[] path)
Get a string description of the menu item.
|
EMenu |
getHiddenMenu()
Returns hidden menu whcih items are invoked by shortcuts only.
|
KeyBindings |
getKeyBindings(EMenuItem item)
Get the key bindings for the menu item.
|
KeyBindingManager.KeyMaps |
getKeyMaps()
Method to return an object that has real InputMap and ActionMap objects.
|
void |
removeKeyBinding(java.lang.String actionDesc,
KeyStrokePair pair)
Removes a key binding.
|
void |
resetAllKeyBindings()
Sets *All* menu items back to their default key bindings
|
void |
resetKeyBindings(EMenuItem item)
Sets
item |
void |
restoreSavedBindings(boolean initialCall) |
void |
updateAllButtons()
Update updatable buttons of this menu.
|
createMenuItem, getItems, registerItem, run, setDynamicItems, updateMenuItem
actionPerformed, getDescription, getMnemonicChar, getPath, getText, getToolTipText, isEnabled, isSelected, registerUpdatable, repeatLastCommand, shortcut, shortcut, toString, updateButtons
public final KeyBindingManager keyBindingManager
public EMenu getHiddenMenu()
public java.lang.String getDescription(int[] path)
Menu | SubMenu | SubMenu | item
path
- a path to EMenuItempublic void updateAllButtons()
public KeyBindings getKeyBindings(EMenuItem item)
public void addUserKeyBinding(EMenuItem item, javax.swing.KeyStroke stroke, javax.swing.KeyStroke prefixStroke)
item
- the menu itemstroke
- the key stroke bound to menu itemprefixStroke
- an option prefix stroke (may be null)public void resetKeyBindings(EMenuItem item)
item back to default Key Bindings
item
- the item to reset to default bindingspublic void resetAllKeyBindings()
public void removeKeyBinding(java.lang.String actionDesc, KeyStrokePair pair)
actionDesc
- the item to remove the binding frompair
- the key stroke pair to removepublic void restoreSavedBindings(boolean initialCall)
public KeyBindingManager.KeyMaps getKeyMaps()
public EMenuBar.Instance genInstance(WindowFrame frame)