|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
Defining your default accelerators
See:
Description
Interface Summary | |
---|---|
KeyStrokeContext | A KeyStrokeContext describes the keystrokes/command mappings available for a component. |
KeyStrokesConstraint | Defines what key can be used as a shortcut. |
Class Summary | |
---|---|
AcceleratorDefinitions | AcceleratorDefinitions represent the list of accelerator definitions that have been registered via the extension manifests |
AcceleratorHook | |
DefaultKeyStrokeContext | This class implements the most common behavior of a KeyStrokeContext. |
DialogWatcher | This class ensures that user defined accelerators for cut, copy and paste also work in the text components of dialogs. |
GrabbableFocusManager | This FocusManager allows to 'steal' keys on demand. |
IdeInputMapUIResource | |
KeyboardDockable | |
KeyPresetConfigPanel | A IDE Settings that controls the shortcut presets |
KeyStroke2String | This is a custom String converter class that meets the static interface requirements as defined by |
KeyStrokeContextRegistry | The KeyStrokeContextRegistry is a collection of KeyStrokeContext. |
KeyStrokeField | A kind of text field that captures key strokes (equivalent to the windows's hot key control). |
KeyStrokeFilter | This class controls the keyup/keydown events to determine what can be used as an accelerator. |
KeyStrokeMap | The KeyStrokeMap maps Keystrokes to action binding objects. KeyStrokeMap does not extend a real Map but implements most of the Map methods. |
KeyStrokeOptions | This class stores the KeyStrokeMap for one global context and multiple local contexts. |
KeyStrokePanel | This panel edits shortcuts in one context. |
KeyStrokes | Stores a multi-KeyStroke. |
KeyStrokesConfigUI | Deprecated. since 11.0 with no replacement. |
KeyStrokesConstraintFactory | KeyStrokesConstraintFactory is a factory of KeyStrokeConstraint. Since I only expect two KeyStrokeConstraint, this factory builds them. |
KeyUtil | Some generic methods related to KeyEvents and KeyStrokes. |
MultiInputMap | An InputMap that can handle multiple keys like Ctrl+K, S |
MultiMapAdapter | This class contains some utilities for the keyboard mapping. |
PresetsPanel | |
XMLKeyStrokeContext | This class should only be used if your addin is part of the product. |
XMLKeystrokeContextDefs |
Create an accelerator definition (accelerators.xml). In this case, "HELLO" is our action ID.
<context scope="global"> <preset name="Default"> <map action="HELLO"> <accel>control alt shift H</accel> </map> </preset> <preset name="Emacs"> <map action="HELLO">> <accel>control alt shift H</accel> <accel>X</accel> </map> </preset> </context>
Register this accelerator file:
final KeyStrokeContextRegistry keyStrokeContextRegistry = Ide.getKeyStrokeContextRegistry(); keyStrokeContextRegistry.addAcceleratorDefinitionFile( getClass().getClassLoader(), "acceleratorsample/accelerators.xml" );
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |