01: package abbot.tester;
02:
03: import java.util.Map;
04:
05: /** Provides read/write of local-specific mappings for virtual keycode-based
06: KeyStrokes to characters and vice versa.
07: */
08: public interface KeyStrokeMapProvider {
09: /** Returns a map for the current locale which translates an Integer
10: * virtual keycode (VK_XXX) into a the Character it produces. May not
11: * necessarily map all keycode/modifier combinations.
12: */
13: Map loadCharacterMap();
14:
15: /** Returns a map for the current locale which translates a Character into
16: * a keycode-based KeyStroke. Where multiple keycodes may produce the
17: * same Character output, the simplest keystroke is used.
18: */
19: Map loadKeyStrokeMap();
20: }
|