Package com._1c.g5.v8.dt.ui.aef.events
Class HotkeyManager
- java.lang.Object
-
- com._1c.g5.v8.dt.ui.aef.events.HotkeyManager
-
public class HotkeyManager extends Object
Provides hotkey information management for AEF widgets.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
HotkeyManager.IHotkeyManagerListener
Hotkey manager listener, itsHotkeyManager.IHotkeyManagerListener.hotkeysChanged()
method invoked when hotkeys settings are changed.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHotkeyListener(HotkeyManager.IHotkeyManagerListener listener)
Adds hotkeys settings change listener.String
getCommandTooltip(Collection<String> contexts, String commandId)
Obtains tooltip text for a command.static HotkeyManager
getInstance()
void
removeHotkeyListener(HotkeyManager.IHotkeyManagerListener listener)
Removes hotkeys settings change listener.
-
-
-
Method Detail
-
getInstance
public static HotkeyManager getInstance()
- Returns:
- global instance of hotkey manager.
-
getCommandTooltip
public String getCommandTooltip(Collection<String> contexts, String commandId)
Obtains tooltip text for a command.- Parameters:
contexts
- the contexts.commandId
- command id to obtain tooltip for.- Returns:
- obtained tooltip text or
null
.
-
addHotkeyListener
public void addHotkeyListener(HotkeyManager.IHotkeyManagerListener listener)
Adds hotkeys settings change listener.- Parameters:
listener
- listener to add.
-
removeHotkeyListener
public void removeHotkeyListener(HotkeyManager.IHotkeyManagerListener listener)
Removes hotkeys settings change listener.- Parameters:
listener
- listener to remove.
-
-