|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KeyStrokeContext
A KeyStrokeContext describes the keystrokes/command mappings available for a
component.
oracle.ide.keyboard.KeyStrokes differ from javax.swing.KeyStroke
because they can store multiple KeyStroke (ex: can store Ctrl+K, S).
A mapping can be global or local. An example of a component using global and
local mappings is the debugger: F5 sets a breakpoint only in the editor while
Ctrl+F2 should allways stop debugging.
You can have presets (Ex: JDev3.2, Msvc, ...) that defines different sets of
mappings. To declare presets, you should return a List of preset names in
getPresetKeyStrokeMaps(). If you only have one preset (jdev5) simply return
null from getPresetKeyStrokeMaps().
KeyStrokesConstraint describes the keys the user can map in the local
context. For example, in a text editor the user should not be allowed to
map the 'S' key since it would prevent to type the 'S' character. However,
the UI editor would allow the user to map the 'S' key to the Select command.
Method Summary | |
---|---|
java.lang.String |
getAcceleratorFile()
If your addin provides predefined accelerator definitions, you should return the name of the .KDF file in your jar file. |
java.util.Set |
getAllActions(boolean bGlobal)
Returns a Set of actions valid for the context. |
java.util.List |
getAllPresets()
This method is called to get a list of the predefined mappings. |
java.lang.String |
getName()
Get the name of this context as it will appear in the shortcut configuration panel. |
KeyStrokeMap |
getPresetKeyStrokeMap(java.lang.Object preset,
boolean bGlobal)
Returns the mapping between KeyStrokes and Actions. |
Method Detail |
---|
java.lang.String getName()
java.util.Set getAllActions(boolean bGlobal)
KeyStrokeMap getPresetKeyStrokeMap(java.lang.Object preset, boolean bGlobal)
preset
- corresponds to one of the elements returned by
getPresetKeyStrokeMaps or null to get the default map.bGlobal
- true when asked for the global keys.java.util.List getAllPresets()
The values in the list should be one of the PC_ constants.
java.lang.String getAcceleratorFile()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |