Class KeyBindings.KeyBindingInfo

java.lang.Object
com.biglybt.ui.swt.KeyBindings.KeyBindingInfo
Enclosing class:
KeyBindings

public static class KeyBindings.KeyBindingInfo extends Object

A basic bean object containing the SWT accelerator and its display name. This is because on platforms like Windows, vanilla SWT MenuItem must be provided the textual representation (display name) of the accelerator in order for it to be visible to the users (as opposed to having it handled by a higher- level API like JFace or native rendering).

  • Field Details

    • name

      public final String name
      The display name of the accelerator
    • accelerator

      public final int accelerator
      The SWT keyboard accelerator value
  • Constructor Details

    • KeyBindingInfo

      private KeyBindingInfo(String name, int accelerator)
      Constructs a new KeyBindingInfo object with the given accelerator name and accelerator value
      Parameters:
      name - Display name
      accelerator - SWT accelerator value