Class KeyBindings.KeyBindingInfo

  • Enclosing class:
    KeyBindings

    public static class KeyBindings.KeyBindingInfo
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      int accelerator
      The SWT keyboard accelerator value
      java.lang.String name
      The display name of the accelerator
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private KeyBindingInfo​(java.lang.String name, int accelerator)
      Constructs a new KeyBindingInfo object with the given accelerator name and accelerator value
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        public final java.lang.String name
        The display name of the accelerator
      • accelerator

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

      • KeyBindingInfo

        private KeyBindingInfo​(java.lang.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