class KeybindingsServiceImpl extends java.lang.Object implements KeybindingsService, java.util.Observer
Constructor and Description |
---|
KeybindingsServiceImpl() |
Modifier and Type | Method and Description |
---|---|
KeybindingSet |
getBindings(KeybindingSet.Category category)
Provides the bindings associated with a given category.
|
GlobalKeybindingSet |
getGlobalBindings()
Provides the bindings associated with the global category.
|
java.util.Map<java.lang.String,java.util.List<java.awt.AWTKeyStroke>> |
getGlobalShortcutFromConfiguration()
Returns list of global shortcuts from the configuration file.
|
void |
saveGlobalShortcutFromConfiguration()
Save the configuration file.
|
(package private) void |
start(org.osgi.framework.BundleContext bc)
Starts the KeybindingService, for each keybinding category retrieving the
default bindings then overwriting them with any custom bindings that can
be retrieved.
|
(package private) void |
stop()
Invalidates references to custom bindings, preventing further writes.
|
void |
update(java.util.Observable obs,
java.lang.Object arg)
Listens for changes in binding sets so changes can be written.
|
void start(org.osgi.framework.BundleContext bc)
bc
- the currently valid OSGI bundle context.void stop()
public KeybindingSet getBindings(KeybindingSet.Category category)
getBindings
in interface KeybindingsService
category
- segment of the UI for which bindings should be retrievedjava.lang.UnsupportedOperationException
- if the service isn't runningpublic void update(java.util.Observable obs, java.lang.Object arg)
update
in interface java.util.Observer
public java.util.Map<java.lang.String,java.util.List<java.awt.AWTKeyStroke>> getGlobalShortcutFromConfiguration()
getGlobalShortcutFromConfiguration
in interface KeybindingsService
public void saveGlobalShortcutFromConfiguration()
saveGlobalShortcutFromConfiguration
in interface KeybindingsService
public GlobalKeybindingSet getGlobalBindings()
getGlobalBindings
in interface KeybindingsService
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.