Class AcceleratorActionFactory

java.lang.Object
xal.extension.application.smf.AcceleratorActionFactory

public class AcceleratorActionFactory extends Object
AcceleratorActionFactory provides factory methods specific to the accelerator based application theme.
Author:
tap
  • Constructor Details

    • AcceleratorActionFactory

      protected AcceleratorActionFactory()
      Creates a new instance of AcceleratorActionFactory
  • Method Details

    • sequenceHandler

      public static MenuListener sequenceHandler(AcceleratorDocument document)
      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

      public static Action loadDefaultAcceleratorAction(AcceleratorDocument document)
      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

      public static 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.
      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.