gov.sns.xal.smf.application
Class AcceleratorCommander

java.lang.Object
  |
  +--gov.sns.application.Commander
        |
        +--gov.sns.xal.smf.application.AcceleratorCommander

public class AcceleratorCommander
extends Commander

AcceleratorCommander subclasses Commander to provide an accelerator specific menu in the main menubar.


Field Summary
 
Fields inherited from class gov.sns.application.Commander
buttonModelMap, commands, controlMap
 
Constructor Summary
protected AcceleratorCommander()
          Inherit from Commander
protected AcceleratorCommander(Commander appCommander, XalDocument document)
          Creates a new instance of AcceleratorCommander
 
Method Summary
protected  void loadDefaultBundle()
          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 gov.sns.application.Commander
getAction, getMenubar, getToolbar, loadBundle, loadBundles, loadCustomBundle, loadCustomBundle, registerAction, registerAction, registerCommands, registerCommands, registerCustomCommands, registerMenuHandler, registerModel, registerTextCommands
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcceleratorCommander

protected AcceleratorCommander(Commander appCommander,
                               XalDocument document)
Creates a new instance of AcceleratorCommander


AcceleratorCommander

protected AcceleratorCommander()
Inherit from Commander

Method Detail

loadDefaultBundle

protected void loadDefaultBundle()
Load the default bundle Override the super class version to include the accelerator specific additions.

Overrides:
loadDefaultBundle in class Commander

registerCustomCommands

protected void registerCustomCommands(XalDocument document)
This method overrides the inherited method to add the accelerator handler which dynamically generates the Accelerator menu items.

Overrides:
registerCustomCommands in class Commander
Parameters:
document - The document for which some commands may need to be associated
See Also:
XalDocument.customizeCommands(gov.sns.application.Commander), XalWindow.customizeCommands(gov.sns.application.Commander), ApplicationAdaptor.customizeCommands(gov.sns.application.Commander)