Package com.biglybt.ui.swt
Class KeyBindings.KeyBindingInfo
java.lang.Object
com.biglybt.ui.swt.KeyBindings.KeyBindingInfo
- Enclosing class:
- KeyBindings
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
FieldsModifier and TypeFieldDescriptionfinal int
The SWT keyboard accelerator valuefinal String
The display name of the accelerator -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
KeyBindingInfo
(String name, int accelerator) Constructs a new KeyBindingInfo object with the given accelerator name and accelerator value -
Method Summary
-
Field Details
-
name
The display name of the accelerator -
accelerator
public final int acceleratorThe SWT keyboard accelerator value
-
-
Constructor Details
-
KeyBindingInfo
Constructs a new KeyBindingInfo object with the given accelerator name and accelerator value- Parameters:
name
- Display nameaccelerator
- SWT accelerator value
-