public class Hotkeys
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
IDX_ALT |
static int |
IDX_CHAR |
static int |
IDX_CTRL |
static int |
IDX_EVENT |
static int |
IDX_KEYCODE |
static int |
IDX_TARGET |
Constructor and Description |
---|
Hotkeys() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addHotkey(WebClientSession wcs,
java.lang.String hotkey,
java.lang.String target,
java.lang.String eventname)
Adds a single hotkey to the hotkeys hashmap
|
char |
getAccessKey(java.lang.String hotkey) |
boolean |
getAltState(java.lang.String hotkey) |
boolean |
getCtrlState(java.lang.String hotkey) |
java.util.List<java.util.List<java.lang.Object>> |
getHotkeysForKeycode(int keycode) |
java.util.Set<java.lang.Integer> |
getKeycodes() |
java.lang.String |
localize(WebClientSession wcs,
java.lang.String hotkey) |
void |
reset()
Initializes the array of hotkeys to an empty state.
|
public static final int IDX_KEYCODE
public static final int IDX_CTRL
public static final int IDX_ALT
public static final int IDX_TARGET
public static final int IDX_EVENT
public static final int IDX_CHAR
public void reset()
public java.lang.String addHotkey(WebClientSession wcs, java.lang.String hotkey, java.lang.String target, java.lang.String eventname)
hotkey
- the combination of the keys that invokes the hotkey, e.g. "CTRL+ALT+L"target
- the id of the target for the hotkey eventeventname
- the method name for the hotkey eventpublic java.lang.String localize(WebClientSession wcs, java.lang.String hotkey)
public java.util.Set<java.lang.Integer> getKeycodes()
public java.util.List<java.util.List<java.lang.Object>> getHotkeysForKeycode(int keycode)
keycode
- public boolean getCtrlState(java.lang.String hotkey)
public boolean getAltState(java.lang.String hotkey)
public char getAccessKey(java.lang.String hotkey)