Package xal.extension.application.smf
Class AcceleratorActionFactory
java.lang.Object
xal.extension.application.smf.AcceleratorActionFactory
AcceleratorActionFactory provides factory methods specific to the accelerator
based application theme.
- Author:
- tap
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new instance of AcceleratorActionFactory -
Method Summary
Modifier and TypeMethodDescriptionstatic Action
loadAcceleratorAction
(AcceleratorDocument document) Creates the action that, when activated, will provide an open dialog box that allows the user to select an accelerator file.static Action
Creates the action that, when activated, will load the default accelerator.static MenuListener
sequenceHandler
(AcceleratorDocument document) The handler that dynamically builds the Sequence submenu whenever the menu is selected.
-
Constructor Details
-
AcceleratorActionFactory
protected AcceleratorActionFactory()Creates a new instance of AcceleratorActionFactory
-
-
Method Details
-
sequenceHandler
The handler that dynamically builds the Sequence submenu whenever the menu is selected. Specifically it builds menu items for loading accelerator sequences associated with the selected accelerator.- Parameters:
document
- The document for which the menu is built- Returns:
- The menu listener that handles the "menuSelected" event.
-
loadDefaultAcceleratorAction
Creates the action that, when activated, will load the default accelerator.- Parameters:
document
- The document into which the accelerator will be set.- Returns:
- The action that will load the accelerator when activated.
-
loadAcceleratorAction
Creates the action that, when activated, will provide an open dialog box that allows the user to select an accelerator file.- Parameters:
document
- The document into which the accelerator will be set.- Returns:
- The action that when activated will load the accelerator selected by the user.
-