Package xal.extension.application.smf
Class AcceleratorCommander
java.lang.Object
xal.extension.application.Commander
xal.extension.application.smf.AcceleratorCommander
AcceleratorCommander subclasses Commander to provide an accelerator specific
menu in the main menubar.
- Author:
- tap
-
Field Summary
Fields inherited from class xal.extension.application.Commander
MENU_DEFINITION_RESOURCE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AcceleratorCommander
(Commander appCommander, XalDocument document) Creates a new instance of AcceleratorCommanderprotected
AcceleratorCommander
(AcceleratorApplication application) Inherit from Commander -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Load the default bundle Override the super class version to include the accelerator specific additions.protected void
registerCustomCommands
(XalDocument document) This method overrides the inherited method to add the accelerator handler which dynamically generates the Accelerator menu items.Methods inherited from class xal.extension.application.Commander
getAction, getActionKey, getIcon, getItemsAfter, getItemsBefore, getLabel, getMenubar, getModel, getState, getToolbar, loadBundle, loadCustomBundle, loadCustomBundle, loadCustomBundle, loadCustomDocumentBundle, registerAction, registerAction, registerCommands, registerCommands, registerCommands, registerCustomCommands, registerCustomCommands, registerDesktopCommands, registerMenuHandler, registerModel, registerTextCommands
-
Constructor Details
-
AcceleratorCommander
Creates a new instance of AcceleratorCommander -
AcceleratorCommander
Inherit from Commander
-
-
Method Details
-
loadDefaultBundle
protected void loadDefaultBundle()Load the default bundle Override the super class version to include the accelerator specific additions.- Overrides:
loadDefaultBundle
in classCommander
-
registerCustomCommands
This method overrides the inherited method to add the accelerator handler which dynamically generates the Accelerator menu items.- Overrides:
registerCustomCommands
in classCommander
- Parameters:
document
- The document for which some commands may need to be associated- See Also:
-
XalAbstractDocument.customizeCommands(xal.extension.application.Commander)
XalWindow.customizeCommands(xal.extension.application.Commander)
AbstractApplicationAdaptor.customizeCommands(xal.extension.application.Commander)
-